Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit d5a0925

Browse files
authored
Merge pull request #782 from 3442853561/exp
Change the example on the localized page to the latest version
2 parents dc07797 + ec28779 commit d5a0925

File tree

11 files changed

+31
-23
lines changed

11 files changed

+31
-23
lines changed

_includes/example.rs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
fn main() {
22
let greetings = ["Hello", "Hola", "Bonjour",
3-
"こんにちは", "您好"];
3+
"Ciao", "こんにちは", "안녕하세요",
4+
"Cześć", "Olá", "Здравствуйте",
5+
"chào bạn", "您好"];
46

57
for (num, greeting) in greetings.iter().enumerate() {
6-
println!("{}", greeting);
8+
print!("{} : ", greeting);
79
match num {
810
0 => println!("This code is editable and runnable!"),
911
1 => println!("Este código es editable y ejecutable!"),
1012
2 => println!("Ce code est modifiable et exécutable!"),
11-
3 => println!("このコードは編集して実行出来ます!"),
12-
4 => println!("这段代码是可以编辑并且能够运行的!"),
13+
3 => println!("Questo codice è modificabile e eseguibile!"),
14+
4 => println!("このコードは編集して実行出来ます!"),
15+
5 => println!("여기에서 코드를 수정하고 실행할 수 있습니다!"),
16+
6 => println!("Ten kod można edytować oraz uruchomić!"),
17+
7 => println!("Esse código é editável e executável!"),
18+
8 => println!("Этот код можно отредактировать и запустить!"),
19+
9 => println!("Bạn có thể edit và run code trực tiếp!"),
20+
10 => println!("这段代码是可以编辑并且能够运行的!"),
1321
_ => {},
1422
}
1523
}

_includes/zh-CN/example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 这个代码是可以编辑并且能够运行的
1+
// 这段代码是可以编辑并且能够运行的
22
fn main() {
33
// 一个简易计算器
44
// `+` 或 `-` 意味着加减1

fr-FR/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ <h2>Fonctionnalités</h2>
3939
<div class="col-md-8">
4040
<div id="active-code">
4141
<button type="button" class="btn btn-primary btn-sm" id="run-code">Exécuter</button>
42-
<div id="editor">{% include fr-FR/example.rs %}</div>
42+
<div id="editor">{% include example.rs %}</div>
4343
<div id="result">
4444
<a id="playlink"><i class="icon-link-ext"></i></a>
4545
</div>
4646
</div>
47-
<div id="static-code">{% include fr-FR/example.rs.html %}</div>
47+
<div id="static-code">{% include example.rs.html %}</div>
4848
<div class="more-examples">
4949
<a href="http://rustbyexample.com/">Plus d’exemples</a>
5050
</div>

it-IT/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ <h2>Caratteristiche:</h2>
4040
<div class="col-md-8">
4141
<div id="active-code">
4242
<button type="button" class="btn btn-primary btn-sm" id="run-code">Esegui</button>
43-
<div id="editor">{% include it-IT/example.rs %}</div>
43+
<div id="editor">{% include example.rs %}</div>
4444
<div id="result" data-msg-running="Running...">
4545
<a id="playlink"><i class="icon-link-ext"></i></a>
4646
</div>
4747
</div>
48-
<div id="static-code">{% include it-IT/example.rs.html %}</div>
48+
<div id="static-code">{% include example.rs.html %}</div>
4949
<div class="more-examples">
5050
<a href="http://rustbyexample.com/">Ulteriori esempi</a>
5151
</div>

ja-JP/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ <h2>特徴</h2>
3737
<div class="col-md-8">
3838
<div id="active-code">
3939
<button type="button" class="btn btn-primary btn-sm" id="run-code">実行</button>
40-
<div id="editor">{% include ja-JP/example.rs %}</div>
40+
<div id="editor">{% include example.rs %}</div>
4141
<div id="result" data-msg-running="実行中...">
4242
<a id="playlink"><i class="icon-link-ext"></i></a>
4343
</div>
4444
</div>
45-
<div id="static-code">{% include ja-JP/example.rs.html %}</div>
45+
<div id="static-code">{% include example.rs.html %}</div>
4646
<div class="more-examples">
4747
<a href="http://rustbyexample.com/">他の例</a>
4848
</div>

ko-KR/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ <h2>기능</h2>
4141
<div class="col-md-8">
4242
<div id="active-code">
4343
<button type="button" class="btn btn-primary btn-sm" id="run-code">실행</button>
44-
<div id="editor">{% include ko-KR/example.rs %}</div>
44+
<div id="editor">{% include example.rs %}</div>
4545
<div id="result" data-msg-running="실행 중...">
4646
<a id="playlink"><i class="icon-link-ext"></i></a>
4747
</div>
4848
</div>
49-
<div id="static-code">{% include ko-KR/example.rs.html %}</div>
49+
<div id="static-code">{% include example.rs.html %}</div>
5050
<div class="more-examples">
5151
<a href="http://rustbyexample.com/">더 많은 예제</a>
5252
</div>

pl-PL/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ <h2>Zawiera</h2>
4040
<div class="col-md-8">
4141
<div id="active-code">
4242
<button type="button" class="btn btn-primary btn-sm" id="run-code">Uruchom</button>
43-
<div id="editor">{% include pl-PL/example.rs %}</div>
43+
<div id="editor">{% include example.rs %}</div>
4444
<div id="result" data-msg-running="Uruchamiam...">
4545
<a id="playlink"><i class="icon-link-ext"></i></a>
4646
</div>
4747
</div>
48-
<div id="static-code">{% include pl-PL/example.rs.html %}</div>
48+
<div id="static-code">{% include example.rs.html %}</div>
4949
<div class="more-examples">
5050
<a href="http://rustbyexample.com/">Więcej przykładów</a>
5151
</div>

pt-BR/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ <h2>Apresentando</h2>
4040
<div class="col-md-8">
4141
<div id="active-code">
4242
<button type="button" class="btn btn-primary btn-sm" id="run-code">Executar</button>
43-
<div id="editor">{% include pt-BR/example.rs %}</div>
43+
<div id="editor">{% include example.rs %}</div>
4444
<div id="result" data-msg-running="Executando...">
4545
<a id="playlink"><i class="icon-link-ext"></i></a>
4646
</div>
4747
</div>
48-
<div id="static-code">{% include pt-BR/example.rs.html %}</div>
48+
<div id="static-code">{% include example.rs.html %}</div>
4949
<div class="more-examples">
5050
<a href="http://rustbyexample.com/">Mais exemplos</a>
5151
</div>

ru-RU/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ <h2>Возможности</h2>
3737
<div class="col-md-8">
3838
<div id="active-code">
3939
<button type="button" class="btn btn-primary btn-sm" id="run-code">Запустить</button>
40-
<div id="editor">{% include ru-RU/example.rs %}</div>
40+
<div id="editor">{% include example.rs %}</div>
4141
<div id="result">
4242
<a id="playlink"><i class="icon-link-ext"></i></a>
4343
</div>
4444
</div>
45-
<div id="static-code">{% include ru-RU/example.rs.html %}</div>
45+
<div id="static-code">{% include example.rs.html %}</div>
4646
<div class="more-examples">
4747
<a href="http://rustbyexample.com/">Больше примеров</a>
4848
</div>

vi-VN/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ <h2>Các tính năng</h2>
3939
<div class="col-md-8">
4040
<div id="active-code">
4141
<button type="button" class="btn btn-primary btn-sm" id="run-code">Chạy thử Rust</button>
42-
<div id="editor">{% include vi-VN/example.rs %}</div>
42+
<div id="editor">{% include example.rs %}</div>
4343
<div id="result" data-msg-running="Đang chạy, chờ chút...">
4444
<a id="playlink"><i class="icon-link-ext"></i></a>
4545
</div>
4646
</div>
47-
<div id="static-code">{% include vi-VN/example.rs.html %}</div>
47+
<div id="static-code">{% include example.rs.html %}</div>
4848
<div class="more-examples">
4949
<a href="http://rustbyexample.com/">Khám phá chân trời mới</a>
5050
</div>

zh-CN/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ <h2>特点</h2>
3838
<div class="col-md-8">
3939
<div id="active-code">
4040
<button type="button" class="btn btn-primary btn-sm" id="run-code">运行</button>
41-
<div id="editor">{% include zh-CN/example.rs %}</div>
41+
<div id="editor">{% include example.rs %}</div>
4242
<div id="result" data-msg-running="运行中...">
4343
<a id="playlink"><i class="icon-link-ext"></i></a>
4444
</div>
4545
</div>
46-
<div id="static-code">{% include zh-CN/example.rs.html %}</div>
46+
<div id="static-code">{% include example.rs.html %}</div>
4747
<div class="more-examples">
4848
<a href="https://play.rust-lang.org/?gist=a22cc6240ff70436cb3ff29c8c1a36df&version=nightly&backtrace=2">使用母语编程</a>
4949
<a href="http://rustbyexample.com/">更多例子</a>

0 commit comments

Comments
 (0)