Skip to content

Commit 8f0ed95

Browse files
committed
---
yaml --- r: 89835 b: refs/heads/master c: 9bcf557 h: refs/heads/master i: 89833: 7514d1f 89831: fd7021d v: v3
1 parent 1f25e26 commit 8f0ed95

35 files changed

+863
-847
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: 8a3b35f68a32c3d0111d12b058d24852b024f1b3
2+
refs/heads/master: 9bcf557589a385d163c6d543ede82953b09e072f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

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/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 & 8 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.
@@ -2711,10 +2711,10 @@ extend with the `-L` switch).
27112711
However, Rust also ships with rustpkg, a package manager that is able to automatically download and build
27122712
libraries if you use it for building your crate. How it works is explained [here][rustpkg],
27132713
but for this tutorial it's only important to know that you can optionally annotate an
2714-
`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:
27152715

27162716
~~~ {.ignore}
2717-
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
27182718
~~~
27192719

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

2733-
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:
27342734

27352735
~~~~
27362736
// lib.rs
@@ -2746,8 +2746,8 @@ Therefore, if you plan to compile your crate as a library, you should annotate i
27462746
You can also in turn require in a `extern mod` statement that certain link metadata items match some criteria.
27472747
For that, Rust currently parses a comma-separated list of name/value pairs that appear after
27482748
it, and ensures that they match the attributes provided in the `link` attribute of a crate file.
2749-
This enables you to, e.g., pick a crate based on its version number, or link a library under a
2750-
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:
27512751

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

2839-
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`:
28402840

28412841
~~~
28422842
use puts = std::io::stdio::println;
28432843
28442844
fn main() {
28452845
println("println is imported per default.");
2846-
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.");
28472847
::std::io::stdio::println("Or from not using the automatic import.");
28482848
}
28492849
~~~

0 commit comments

Comments
 (0)