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

Commit 712d355

Browse files
authored
Merge pull request #4 from rust-lang/master
17.2.15.1.44
2 parents a449804 + 85ef02b commit 712d355

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1422
-426
lines changed

_config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: The Rust Programming Language
2-
stable: "1.15.0"
3-
stable_date: "2017-02-02"
4-
stable_blog: "https://blog.rust-lang.org/2017/02/02/Rust-1.15.html"
5-
stable_full_version: "rustc 1.15.0 (10893a9a3 2017-01-19)"
2+
stable: "1.15.1"
3+
stable_date: "2017-02-09"
4+
stable_blog: "https://blog.rust-lang.org/2017/02/09/Rust-1.15.1.html"
5+
stable_full_version: "rustc 1.15.1 (021bd294c 2017-02-08)"
66
beta: "1.16"
77
beta_date: "2017-03-16"
88
nightly: "1.17"
99
channels:
1010
- name: "stable"
11-
vers: "1.15.0"
12-
package: "1.15.0"
11+
vers: "1.15.1"
12+
package: "1.15.1"
1313
- name: "beta"
1414
vers: "1.16"
1515
package: "beta"

_includes/footer.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<a href="/en-US/">English</a>,
2+
<a href="/es-ES/">Español</a>,
3+
<a href="/fr-FR/">Français</a>,
4+
<a href="/it-IT/">Italiano</a>,
5+
<a href="/ja-JP/">日本語</a>,
6+
<a href="/ko-KR/">한국어</a>,
7+
<a href="/pl-PL/">Polski</a>,
8+
<a href="/pt-BR/">Português</a>,
9+
<a href="/ru-RU/">Русский</a>,
10+
<a href="/vi-VN/">Tiếng việt</a>,
11+
<a href="/zh-CN/">简体中文</a>

_includes/it-IT/example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Questo codice é modificabile e eseguibile!
1+
// Questo codice è modificabile e eseguibile!
22
fn main() {
33
// Una semplice calcolatrice per numeri interi:
44
// `+` o `-` aggiunge o sottrae 1

_includes/pl-PL/example.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Ten kod można edytować oraz uruchomić!
2+
fn main() {
3+
// Prosty kalkulator dla liczb całkowitych:
4+
// `+` lub `-` oznacza dodanie lub odjęcie 1
5+
// `*` lub `/` oznacza pomnożenie lub podzielenie przez 2
6+
7+
let program = "+ + * - /";
8+
let mut accumulator = 0;
9+
10+
for token in program.chars() {
11+
match token {
12+
'+' => accumulator += 1,
13+
'-' => accumulator -= 1,
14+
'*' => accumulator *= 2,
15+
'/' => accumulator /= 2,
16+
_ => { /* ignoruj wszystkie pozostałe znaki */ }
17+
}
18+
}
19+
20+
println!("Program \"{}\" wylicza wartość {}",
21+
program, accumulator);
22+
}

_includes/pl-PL/example.rs.html

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<pre class='rust'>
2+
<span class='kw'>fn</span> main() {
3+
<span class='comment'>// Prosty kalkulator dla liczb całkowitych:
4+
// `+` lub `-` oznacza dodanie lub odjęcie 1
5+
// `*` lub `/` oznacza pomnożenie lub podzielenie przez 2</span>
6+
7+
<span class='kw'>let</span> program = <span class='string'>"+ + * - /"</span>;
8+
<span class='kw'>let</span> <span class='kw'>mut</span> accumulator = <span class='number'>0</span>;
9+
10+
<span class='kw'>for</span> token in program.chars() {
11+
<span class='kw'>match</span> token {
12+
<span class='string'>'+'</span> => accumulator <span class='op'>+=</span> <span class='number'>1</span>,
13+
<span class='string'>'-'</span> => accumulator <span class='op'>-=</span> <span class='number'>1</span>,
14+
<span class='string'>'*'</span> => accumulator <span class='op'>*=</span> <span class='number'>2</span>,
15+
<span class='string'>'/'</span> => accumulator <span class='op'>/=</span> <span class='number'>2</span>,
16+
_ => { <span class='comment'>/* ignoruj wszystkie pozostałe znaki */</span> }
17+
}
18+
}
19+
20+
<span class='prelude-val'>println!</span>(<span class='string'>"Program \"{}\" wylicza wartość {}"</span>,
21+
program, accumulator);
22+
}
23+
</pre>
24+
// Ten kod można edytować oraz uruchomić!
25+
fn main() {
26+
// Prosty kalkulator dla liczb całkowitych:
27+
// `+` lub `-` oznacza dodanie lub odjęcie 1
28+
// `*` lub `/` oznacza pomnożenie lub podzielenie przez 2
29+
30+
let program = "+ + * - /";
31+
let mut accumulator = 0;
32+
33+
for token in program.chars() {
34+
match token {
35+
'+' => accumulator += 1,
36+
'-' => accumulator -= 1,
37+
'*' => accumulator *= 2,
38+
'/' => accumulator /= 2,
39+
_ => { /* ignoruj wszystkie pozostałe znaki */ }
40+
}
41+
}
42+
43+
println!("Program \"{}\" wylicza wartość {}",
44+
program, accumulator);
45+
}

_layouts/basic.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,7 @@ <h2><a href="/en-US/contribute.html">Contribute</a></h2>
3838

3939
<footer>
4040
<p>Our site in other languages:
41-
<a href="/es-ES/">Español</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
44-
<a href="/ko-KR/">한국어</a>,
45-
<a href="/pt-BR/">Português</a>,
46-
<a href="/ru-RU/">Русский</a>,
47-
<a href="/zh-CN/">简体中文</a>,
48-
<a href="/it-IT/">Italiano</a>
49-
<a href="/vi-VN/">Tiếng việt</a>,
41+
{% include footer.html %}
5042
</p>
5143
</footer>
5244

_layouts/es-ES/basic.html

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
<!DOCTYPE html>
22
<!-- Page last generated {{ site.time }} -->
3-
<html lang="en">
3+
<html lang="es">
44
<head>
55
<meta charset="utf-8">
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<title>{{ page.title }}</title>
9-
<meta name="keywords" content="Rust, Rust programming language, rustlang, rust-lang, Mozilla Rust">
10-
<meta name="description" content="A systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety.">
9+
<meta name="keywords" content="Rust, Rust lenguaje de programación, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="Rust es un lenguaje de programación de sistemas extremadamente rápido, previene fallas de segmentación y garantiza la seguridad de los hilos de ejecución. ">
1111

1212
<link rel="stylesheet" href="/css/bootstrap.css">
1313
<link rel="stylesheet" href="/css/style.css">
1414
</head>
1515

1616
<body class="container">
1717
<a href="https://github.com/rust-lang/rust">
18-
<img class="ribbon" style="display: none" src="/logos/forkme.png" alt="Fork me on GitHub" width="298" height="298">
18+
<img class="ribbon" style="display: none" src="/logos/forkme.png" alt="Fork me en GitHub" width="298" height="298">
1919
</a>
2020

2121
<header>
2222
<ul class="row menu">
2323
<li class="col-xs-12 col-md-2">
2424
<a href="/en-US/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" />
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="Logo de Rust" />
2626
</a>
2727
</li>
2828
<li class="col-xs-12 col-md-10 menu">
29-
<h2><a href="/en-US/documentation.html">Documentation</a></h2>
30-
<h2><a href="/en-US/install.html">Install</a></h2>
31-
<h2><a href="/en-US/community.html">Community</a></h2>
32-
<h2><a href="/en-US/contribute.html">Contribute</a></h2>
29+
<h2><a href="/en-ES/documentation.html">Documentación</a></h2>
30+
<h2><a href="/en-ES/install.html">Instalar</a></h2>
31+
<h2><a href="/en-ES/community.html">Comunidad</a></h2>
32+
<h2><a href="/en-ES/contribute.html">Contribuye</a></h2>
3333
</li>
3434
</ul>
3535
</header>
@@ -38,14 +38,7 @@ <h2><a href="/en-US/contribute.html">Contribute</a></h2>
3838

3939
<footer>
4040
<p>Our site in other languages:
41-
<a href="/es-ES/">Español</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
44-
<a href="/ko-KR/">한국어</a>,
45-
<a href="/pt-BR/">Português</a>,
46-
<a href="/ru-RU/">Русский</a>,
47-
<a href="/vi-VN/">Tiếng việt</a>,
48-
<a href="/zh-CN/">简体中文</a>
41+
{% include footer.html %}
4942
</p>
5043
</footer>
5144

_layouts/fr-FR/basic.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,7 @@ <h2><a href="/fr-FR/contribute.html">Contribuer</a></h2>
3838

3939
<footer>
4040
<p>Notre site dans d'autres langues&nbsp;:
41-
<a href="/en-US/">English</a>,
42-
<a href="/ja-JP/">日本語</a>,
43-
<a href="/ko-KR/">한국어</a>,
44-
<a href="/pt-BR/">Português</a>,
45-
<a href="/ru-RU/">Русский</a>,
46-
<a href="/it-IT/">Italiano</a>
47-
<a href="/vi-VN/">Tiếng việt</a>,
48-
<a href="/zh-CN/">简体中文</a>
41+
{% include footer.html %}
4942
</p>
5043
</footer>
5144

_layouts/it-IT/basic.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<li class="col-xs-12 col-md-10 menu">
2929
<h2><a href="/it-IT/documentation.html">Documentazione</a></h2>
3030
<h2><a href="/it-IT/install.html">Installazione</a></h2>
31-
<h2><a href="/it-IT/community.html">Comunitá</a></h2>
31+
<h2><a href="/it-IT/community.html">Comunità</a></h2>
3232
<h2><a href="/it-IT/contribute.html">Contribuisci</a></h2>
3333
</li>
3434
</ul>
@@ -38,13 +38,7 @@ <h2><a href="/it-IT/contribute.html">Contribuisci</a></h2>
3838

3939
<footer>
4040
<p>Il nostro sito in altre lingue:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr/">Français</a>,
43-
<a href="/ko-KR/">한국어</a>,
44-
<a href="/pt-BR/">Português</a>,
45-
<a href="/ru-RU/">Русский</a>,
46-
<a href="/zh-CN/">简体中文</a>,
47-
<a href="/it-IT/">Italiano</a>
41+
{% include footer.html %}
4842
</p>
4943
</footer>
5044

_layouts/ja-JP/basic.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ <h2><a href="/en-US/contribute.html">開発に参加する</a></h2>
3838

3939
<footer>
4040
<p>他の言語のページ:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ko-KR/">한국어</a>,
44-
<a href="/pt-BR/">Português</a>,
45-
<a href="/ru-RU/">Русский</a>,
46-
<a href="/zh-CN/">简体中文</a>,
47-
<a href="/it-IT/">Italiano</a>
41+
{% include footer.html %}
4842
</p>
4943
</footer>
5044

_layouts/ko-KR/basic.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,7 @@ <h2><a href="/ko-KR/contribute.html">기여하기</a></h2>
3838

3939
<footer>
4040
<p>이 사이트를 다른 언어로 보기:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
44-
<a href="/pt-BR/">Português</a>,
45-
<a href="/ru-RU/">Русский</a>,
46-
<a href="/it-IT/">Italiano</a>
47-
<a href="/vi-VN/">Tiếng việt</a>,
48-
<a href="/zh-CN/">简体中文</a>
41+
{% include footer.html %}
4942
</p>
5043
</footer>
5144

_layouts/pl-PL/basic.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!DOCTYPE html>
2+
<!-- Page last generated {{ site.time }} -->
3+
<html lang="pl-PL">
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 programming language, Język Programowania Rust, rustlang, rust-lang, Mozilla Rust">
10+
<meta name="description" content="Systemowy język programowania, który jest niesamowicie szybki, zapobiega naruszeniom pamięci oraz gwarantuje bezpieczeństwo wątków.">
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.png" alt="Fork me on 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="/pl-PL/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="/pl-PL/documentation.html">Dokumentacja</a></h2>
30+
<h2><a href="/pl-PL/install.html">Instalacja</a></h2>
31+
<h2><a href="/pl-PL/community.html">Społeczność</a></h2>
32+
<h2><a href="/pl-PL/contribute.html">Wspomóż</a></h2>
33+
</li>
34+
</ul>
35+
</header>
36+
37+
{{ content }}
38+
39+
<footer>
40+
<p>Nasza strona w innych językach:
41+
{% include footer.html %}
42+
</p>
43+
</footer>
44+
45+
<script>
46+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
47+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
48+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
49+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
50+
51+
ga('create', 'UA-58390457-1', 'auto');
52+
ga('send', 'pageview');
53+
54+
</script>
55+
</body>
56+
</html>

_layouts/pl-PL/default.html

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

_layouts/pt-BR/basic.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,7 @@ <h2><a href="/pt-BR/contribute.html">Contribua</a></h2>
3838

3939
<footer>
4040
<p>Nosso site em outros idiomas:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
44-
<a href="/ko-KR/">한국어</a>,
45-
<a href="/ru-RU/">Русский</a>,
46-
<a href="/it-IT/">Italiano</a>
47-
<a href="/vi-VN/">Tiếng việt</a>,
48-
<a href="/zh-CN/">简体中文</a>
41+
{% include footer.html %}
4942
</p>
5043
</footer>
5144

_layouts/redirect.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"fr-FR": "fr", // Prevents 404 on existing links
1414
"ko": "ko-KR",
1515
"ko-KR": "ko-KR",
16+
"pl": "pl-PL",
17+
"pl-PL": "pl-PL",
1618
"pt": "pt-BR", // For now, since there's no pt-PT page, redirect to pt-BR
1719
"pt-BR": "pt-BR",
1820
"ru": "ru-RU",

_layouts/ru-RU/basic.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,7 @@ <h2><a href="/ru-RU/contribute.html">Участие</a></h2>
3838

3939
<footer>
4040
<p>Наш сайт на других языках:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
44-
<a href="/ko-KR/">한국어</a>,
45-
<a href="/pt-BR/">Português</a>,
46-
<a href="/it-IT/">Italiano</a>
47-
<a href="/vi-VN/">Tiếng việt</a>,
48-
<a href="/zh-CN/">简体中文</a>
41+
{% include footer.html %}
4942
</p>
5043
</footer>
5144

_layouts/vi-VN/basic.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@ <h2><a href="/vi-VN/contribute.html">Đóng góp</a></h2>
3838

3939
<footer>
4040
<p>Our site in other languages:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ko-KR/">한국어</a>,
44-
<a href="/pt-BR/">Português</a>,
45-
<a href="/ru-RU/">Русский</a>,
46-
<a href="/zh-CN/">简体中文</a>,
47-
<a href="/it-IT/">Italiano</a>
41+
{% include footer.html %}
4842
</p>
4943
</footer>
5044

_layouts/zh-CN/basic.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,7 @@ <h2><a href="/zh-CN/contribute.html">贡献</a></h2>
3838

3939
<footer>
4040
<p>本土化页面:
41-
<a href="/en-US/">English</a>,
42-
<a href="/fr-FR/">Français</a>,
43-
<a href="/ja-JP/">日本語</a>,
44-
<a href="/ko-KR/">한국어</a>,
45-
<a href="/pt-BR/">Português</a>,
46-
<a href="/ru-RU/">Русский</a>,
47-
<a href="/it-IT/">Italiano</a>,
48-
<a href="/vi-VN/">Tiếng việt</a>
41+
{% include footer.html %}
4942
</p>
5043
</footer>
5144

0 commit comments

Comments
 (0)