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

Commit 0207972

Browse files
committed
16.9.7.23.26
1 parent 94a6e75 commit 0207972

File tree

4 files changed

+62
-5
lines changed

4 files changed

+62
-5
lines changed

_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'>// A simple integer calculator:
4-
// `+` or `-` means add or subtract by 1
5-
// `*` or `/` means multiply or divide by 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'>/* ignore everything else */</span> }
16+
_ => { <span class='comment'>/* 忽略其他 */</span> }
1717
}
1818
}
1919

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

_layouts/zh-CN/basic.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<!-- Page last generated {{ site.time }} -->
3+
<html lang="zh-CN">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
<title>{{ page.title }}</title>
9+
<meta name="keywords" content="Rust, Rust程序语言, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="一种注重高效、安全、并行的系统程序语言。">
11+
12+
<link rel="stylesheet" href="/css/bootstrap.css">
13+
<link rel="stylesheet" href="/css/style.css">
14+
</head>
15+
16+
<body class="container">
17+
<a href="https://github.com/rust-lang/rust">
18+
<img class="ribbon" style="display: none" src="/logos/forkme_zh_cn.png" alt="从GitHub上拷贝源码" width="298" height="298">
19+
</a>
20+
21+
<header>
22+
<ul class="row menu">
23+
<li class="col-xs-12 col-md-2">
24+
<a href="/index.html">
25+
<img class="img-responsive" src="/logos/rust-logo-blk.svg" onerror="this.src='/logos/rust-logo-256x256-blk.png'" height="128" width="128" alt="Rust logo" />
26+
</a>
27+
</li>
28+
<li class="col-xs-12 col-md-10 menu">
29+
<h2><a href="/documentation.html">文档</a></h2>
30+
<h2><a href="/community.html">社区</a></h2>
31+
<h2><a href="/downloads.html">下载</a></h2>
32+
<h2><a href="/contribute.html">贡献</a></h2>
33+
</li>
34+
</ul>
35+
</header>
36+
37+
{{ content }}
38+
39+
<script>
40+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
41+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
42+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
43+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
44+
45+
ga('create', 'UA-58390457-1', 'auto');
46+
ga('send', 'pageview');
47+
48+
</script>
49+
</body>
50+
</html>

_layouts/zh-CN/default.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: basic
3+
---
4+
5+
<div class="content">
6+
{{ content }}
7+
</div>

logos/forkme_zh_cn.png

41.4 KB
Loading

0 commit comments

Comments
 (0)