Skip to content

Commit d35a326

Browse files
committed
---
yaml --- r: 89851 b: refs/heads/master c: 91de538 h: refs/heads/master i: 89849: 71e0b6f 89847: bfe2beb v: v3
1 parent 7d375d8 commit d35a326

Some content is hidden

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

64 files changed

+595
-647
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 11ece44f02fdedb79a51b8100d36c84ee4c9408f
2+
refs/heads/master: 91de538c9802e7c45cadc5391450631c74f593d2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/.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/

trunk/doc/favicon.inc

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

trunk/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>

trunk/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+
}

trunk/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

trunk/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

trunk/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 }

trunk/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

trunk/doc/tutorial-tasks.md

Lines changed: 2 additions & 2 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

trunk/doc/tutorial.md

Lines changed: 8 additions & 11 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,14 +2836,14 @@ 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
~~~
28452842
use puts = std::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.");
2846+
puts("Doesn't hinder you from importing it under an different name yourself.");
28502847
::std::io::stdio::println("Or from not using the automatic import.");
28512848
}
28522849
~~~

0 commit comments

Comments
 (0)