Skip to content

Commit 2224a69

Browse files
committed
---
yaml --- r: 96111 b: refs/heads/dist-snap c: 5748699 h: refs/heads/master i: 96109: 07418a6 96107: 4700fae 96103: 4c098a7 96095: 16a863d v: v3
1 parent 86d1749 commit 2224a69

File tree

199 files changed

+1426
-2008
lines changed

Some content is hidden

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

199 files changed

+1426
-2008
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: b0e1318164f6b496c513a93fd745faabfd225ef5
9+
refs/heads/dist-snap: 57486994d56e57044a37144fa6f741a946ff295a
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,3 @@ config.stamp
8989
src/etc/dl
9090
.settings/
9191
build/
92-
i686-pc-mingw32/

branches/dist-snap/doc/favicon.inc

Lines changed: 0 additions & 1 deletion
This file was deleted.

branches/dist-snap/doc/manual.inc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
display: block;
55
padding-left: 2em;
66
}
7-
#influences blockquote p:last-child {
8-
display: block;
9-
line-height: 1.428571429;
10-
color: #999999;
11-
}
12-
</style>
7+
</style>

branches/dist-snap/doc/po/ja/tutorial-tasks.md.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ msgid ""
529529
"The basic example below illustrates this.\n"
530530
"~~~\n"
531531
"# fn make_a_sandwich() {};\n"
532-
"fn fib(n: u64) -> u64 {\n"
532+
"fn fib(n: uint) -> uint {\n"
533533
" // lengthy computation returning an uint\n"
534534
" 12586269025\n"
535535
"}\n"

branches/dist-snap/doc/po/tutorial-tasks.md.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ msgid ""
529529
"The basic example below illustrates this.\n"
530530
"~~~\n"
531531
"# fn make_a_sandwich() {};\n"
532-
"fn fib(n: u64) -> u64 {\n"
532+
"fn fib(n: uint) -> uint {\n"
533533
" // lengthy computation returning an uint\n"
534534
" 12586269025\n"
535535
"}\n"

branches/dist-snap/doc/rust.css

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2013 The Rust Project Developers. See the COPYRIGHT
33
* file at the top-level directory of this distribution and at
44
* http://rust-lang.org/COPYRIGHT.
5-
* With elements taken from Bootstrap v3.0.2 (MIT licensed).
5+
* With elements taken from Bootstrap v3.0.0 (Apache v2.0 licensed).
66
*
77
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
88
* http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
@@ -93,7 +93,6 @@ p {
9393
a {
9494
text-decoration: none;
9595
color: #428BCA;
96-
background: transparent;
9796
}
9897
a:hover, a:focus {
9998
color: #2A6496;
@@ -115,7 +114,7 @@ h5 a:link, h5 a:visited {color: black;}
115114
/* Code
116115
========================================================================== */
117116
pre, code {
118-
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
117+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
119118
border-radius: 4px;
120119
}
121120
pre {
@@ -142,7 +141,7 @@ pre code {
142141
color: inherit;
143142
white-space: pre-wrap;
144143
background-color: transparent;
145-
border-radius: 0;
144+
border: 0;
146145
}
147146

148147
/* Code highlighting */
@@ -159,7 +158,7 @@ pre code {
159158
.cm-s-default span.cm-string {color: #a11;}
160159
.cm-s-default span.cm-string-2 {color: #f50;}
161160
.cm-s-default span.cm-meta {color: #555;}
162-
/*.cm-s-default span.cm-error {color: #f00;}*/
161+
.cm-s-default span.cm-error {color: #f00;}
163162
.cm-s-default span.cm-qualifier {color: #555;}
164163
.cm-s-default span.cm-builtin {color: #30a;}
165164
.cm-s-default span.cm-bracket {color: #cc7;}
@@ -188,7 +187,7 @@ pre code {
188187
}
189188
#versioninfo a.hash {
190189
color: gray;
191-
font-size: 70%;
190+
font-size: 60%;
192191
}
193192

194193
blockquote {
@@ -304,4 +303,4 @@ hr {
304303
table td, table th {
305304
background-color: #fff !important;
306305
}
307-
}
306+
}

branches/dist-snap/doc/rustpkg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Thus, there should be no need to pass a `-L` flag to rustpkg to tell it where to
120120

121121
# Custom build scripts
122122

123-
A file called `pkg.rs` at the root level in a package directory is called a *package script*.
123+
A file called `pkg.rs` at the root level in a workspace is called a *package script*.
124124
If a package script exists, rustpkg executes it to build the package
125125
rather than inferring crates as described previously.
126126

branches/dist-snap/doc/tutorial-ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ conventions. Rust provides a way to tell the compiler which convention to use:
303303
#[cfg(target_os = "win32", target_arch = "x86")]
304304
#[link_name = "kernel32"]
305305
extern "stdcall" {
306-
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> std::libc::c_int;
306+
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
307307
}
308308
~~~~
309309

branches/dist-snap/doc/tutorial-macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ solves the problem.
210210

211211
# Macro argument pattern matching
212212

213-
## Motivation
214-
215213
Now consider code like the following:
216214

215+
## Motivation
216+
217217
~~~~
218218
# enum t1 { good_1(t2, uint), bad_1 };
219219
# pub struct t2 { body: t3 }

branches/dist-snap/doc/tutorial-rustpkg.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $ rustc main.rs
2727
main.rs:1:0: 1:17 error: can't find crate for `hello`
2828
main.rs:1 extern mod hello;
2929
^~~~~~~~~~~~~~~~~
30+
3031
~~~~
3132

3233
This makes sense, as we haven't gotten it from anywhere yet! Luckily for us,
@@ -215,7 +216,7 @@ a function that can be sensibly tested:
215216
#[license = "MIT"];
216217
217218
pub fn is_even(i: uint) -> bool {
218-
i % 2 == 0
219+
i % 2 == 0
219220
}
220221
~~~
221222

@@ -229,9 +230,9 @@ use hello::is_even;
229230
230231
#[test]
231232
fn test_is_even() {
232-
assert!(is_even(0));
233-
assert!(!is_even(1));
234-
assert!(is_even(2));
233+
assert!(is_even(0));
234+
assert!(!is_even(1));
235+
assert!(is_even(2));
235236
}
236237
~~~
237238

branches/dist-snap/doc/tutorial-tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ an environment that it carries across tasks.
104104
let child_task_number = generate_task_number();
105105
106106
do spawn {
107-
// Capture it in the remote task
108-
println!("I am child number {}", child_task_number);
107+
// Capture it in the remote task
108+
println!("I am child number {}", child_task_number);
109109
}
110110
~~~
111111

@@ -273,7 +273,7 @@ later.
273273
The basic example below illustrates this.
274274
~~~
275275
# fn make_a_sandwich() {};
276-
fn fib(n: u64) -> u64 {
276+
fn fib(n: uint) -> uint {
277277
// lengthy computation returning an uint
278278
12586269025
279279
}

branches/dist-snap/doc/tutorial.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ confusing numbers that correspond to different units.
804804
We've already seen several function definitions. Like all other static
805805
declarations, such as `type`, functions can be declared both at the
806806
top level and inside other functions (or in modules, which we'll come
807-
back to [later](#crates-and-the-module-system)). The `fn` keyword introduces a
807+
back to [later](#modules-and-crates)). The `fn` keyword introduces a
808808
function. A function has an argument list, which is a parenthesized
809809
list of `expr: type` pairs separated by commas. An arrow `->`
810810
separates the argument list and the function's return type.
@@ -2550,21 +2550,18 @@ fn main() {
25502550
~~~~
25512551

25522552
And here an example with multiple files:
2553-
25542553
~~~{.ignore}
25552554
// a.rs - crate root
25562555
use b::foo;
25572556
mod b;
25582557
fn main() { foo(); }
25592558
~~~
2560-
25612559
~~~{.ignore}
25622560
// b.rs
25632561
use b::c::bar;
25642562
pub mod c;
25652563
pub fn foo() { bar(); }
25662564
~~~
2567-
25682565
~~~
25692566
// c.rs
25702567
pub fn bar() { println("Baz!"); }
@@ -2714,10 +2711,10 @@ extend with the `-L` switch).
27142711
However, Rust also ships with rustpkg, a package manager that is able to automatically download and build
27152712
libraries if you use it for building your crate. How it works is explained [here][rustpkg],
27162713
but for this tutorial it's only important to know that you can optionally annotate an
2717-
`extern mod` statement with a package id that rustpkg can use to identify it:
2714+
`extern mod` statement with an package id that rustpkg can use to identify it:
27182715

27192716
~~~ {.ignore}
2720-
extern mod rust = "github.com/mozilla/rust"; // pretend Rust is a simple library
2717+
extern mod rust = "github.com/mozilla/rust"; // pretend Rust is an simple library
27212718
~~~
27222719

27232720
[rustpkg]: rustpkg.html
@@ -2733,7 +2730,7 @@ the link name and the version. It also hashes the filename and the symbols in a
27332730
based on the link metadata, allowing you to use two different versions of the same library in a crate
27342731
without conflict.
27352732

2736-
Therefore, if you plan to compile your crate as a library, you should annotate it with that information:
2733+
Therefor, if you plan to compile your crate as a library, you should annotate it with that information:
27372734

27382735
~~~~
27392736
// lib.rs
@@ -2749,8 +2746,8 @@ Therefore, if you plan to compile your crate as a library, you should annotate i
27492746
You can also in turn require in a `extern mod` statement that certain link metadata items match some criteria.
27502747
For that, Rust currently parses a comma-separated list of name/value pairs that appear after
27512748
it, and ensures that they match the attributes provided in the `link` attribute of a crate file.
2752-
This enables you to, e.g., pick a crate based on its version number, or link a library under a
2753-
different name. For example, these two `mod` statements would both accept and select the crate define above:
2749+
This enables you to, eg, pick a a crate based on it's version number, or to link an library under an
2750+
different name. For example, this two mod statements would both accept and select the crate define above:
27542751

27552752
~~~~ {.xfail-test}
27562753
extern mod farm(vers = "2.5");
@@ -2839,15 +2836,15 @@ This allows you to use common types and functions like `Option<T>` or `println`
28392836
without needing to import them. And if you need something from `std` that's not in the prelude,
28402837
you just have to import it with an `use` statement.
28412838

2842-
For example, it re-exports `println` which is defined in `std::io::stdio::println`:
2839+
For example, it re-exports `println` which is defined in `std::io::println`:
28432840

28442841
~~~
2845-
use puts = std::io::stdio::println;
2842+
use puts = std::rt::io::stdio::println;
28462843
28472844
fn main() {
28482845
println("println is imported per default.");
2849-
puts("Doesn't hinder you from importing it under a different name yourself.");
2850-
::std::io::stdio::println("Or from not using the automatic import.");
2846+
puts("Doesn't hinder you from importing it under an different name yourself.");
2847+
::std::rt::io::stdio::println("Or from not using the automatic import.");
28512848
}
28522849
~~~
28532850

0 commit comments

Comments
 (0)