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

Commit e631c1f

Browse files
authored
Merge pull request #541 from steveklabnik/fix-zh-cn
Fix rendering of zh-CN
2 parents 3d24af6 + f20cc7b commit e631c1f

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

_includes/zh-CN/example.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// 这个代码是可以编辑并且能够运行的
1+
// 这个代码是可以编辑并且能够运行的
22
fn main() {
3-
// 一个简易计算器
4-
// `+` 或 `-` 意味着加减1
5-
// `*` 或 `/` 意味着乘除2
3+
// 一个简易计算器
4+
// `+` 或 `-` 意味着加减1
5+
// `*` 或 `/` 意味着乘除2
66

77
let program = "+ + * - /";
88
let mut accumulator = 0;
@@ -13,10 +13,10 @@ fn main() {
1313
'-' => accumulator -= 1,
1414
'*' => accumulator *= 2,
1515
'/' => accumulator /= 2,
16-
_ => { /* 忽略其他 */ }
16+
_ => { /* 忽略其他 */ }
1717
}
1818
}
1919

20-
println!("程序 \"{}\" 的结果是 {}",
20+
println!("程序 \"{}\" 的结果是 {}",
2121
program, accumulator);
2222
}

_includes/zh-CN/example.rs.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<pre class='rust'>
22
<span class='kw'>fn</span> main() {
3-
<span class='comment'>// 一个简易计算器
4-
// `+` 或 `-` 意味着加减1
5-
// `*` 或 `/` 意味着乘除2</span>
3+
<span class='comment'>// 一个简易计算器
4+
// `+` 或 `-` 意味着加减1
5+
// `*` 或 `/` 意味着乘除2</span>
66

77
<span class='kw'>let</span> program = <span class='string'>"+ + * - /"</span>;
88
<span class='kw'>let</span> <span class='kw'>mut</span> accumulator = <span class='number'>0</span>;
@@ -13,11 +13,11 @@
1313
<span class='string'>'-'</span> => accumulator <span class='op'>-=</span> <span class='number'>1</span>,
1414
<span class='string'>'*'</span> => accumulator <span class='op'>*=</span> <span class='number'>2</span>,
1515
<span class='string'>'/'</span> => accumulator <span class='op'>/=</span> <span class='number'>2</span>,
16-
_ => { <span class='comment'>/* 忽略其他 */</span> }
16+
_ => { <span class='comment'>/* 忽略其他 */</span> }
1717
}
1818
}
1919

20-
<span class='prelude-val'>println!</span>(<span class='string'>"程序 \"{}\" 的结果是 {}"</span>,
20+
<span class='prelude-val'>println!</span>(<span class='string'>"程序 \"{}\" 的结果是 {}"</span>,
2121
program, accumulator);
2222
}
2323
</pre>

zh-CN/downloads.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
layout: zh-CN/default
33
title: 下载 &middot; Rust程序语言
44
---

zh-CN/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
layout: zh-CN/basic
33
title: Rust程序语言
44
---

0 commit comments

Comments
 (0)