Skip to content

Commit 514659e

Browse files
committed
---
yaml --- r: 134126 b: refs/heads/master c: 47682f9 h: refs/heads/master v: v3
1 parent 7076f20 commit 514659e

File tree

97 files changed

+4627
-4936
lines changed

Some content is hidden

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

97 files changed

+4627
-4936
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: 7fbbfe6bf29b984275c9bc59754e8ec053838781
2+
refs/heads/master: 47682f96de1da3bb0986e44e529cc51f24549c86
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 437179ed8bf7f7672f84b19265df1ce569e70490
55
refs/heads/try: 777654cfccbfa39bc7f671d8e9629018ed8ca12d

trunk/CONTRIBUTING.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ If you're just reporting a bug, please see:
44

55
http://doc.rust-lang.org/complement-bugreport.html
66

7-
## Submitting an issue
8-
9-
Please submit issues here for bug reports or implementation details. For feature
10-
requests, language changes, or major changes to the libraries, please submit an
11-
issue against the [RFCs repository](https://github.com/rust-lang/rfcs).
12-
137
## Pull request procedure
148

159
Pull requests should be targeted at Rust's `master` branch.

trunk/mk/docs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ DOCS := index intro tutorial guide guide-ffi guide-macros guide-lifetimes \
2929
guide-tasks guide-container guide-pointers guide-testing \
3030
guide-runtime complement-bugreport \
3131
complement-lang-faq complement-design-faq complement-project-faq rust \
32-
rustdoc guide-unsafe guide-strings
32+
rustdoc guide-unsafe guide-strings reference
3333

34-
PDF_DOCS := guide rust
34+
PDF_DOCS := guide reference
3535

3636
RUSTDOC_DEPS_rust := doc/full-toc.inc
3737
RUSTDOC_FLAGS_rust := --html-in-header=doc/full-toc.inc

trunk/src/doc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To generate an HTML version of a doc from Markdown manually, you can do
3030
something like:
3131

3232
~~~~
33-
pandoc --from=markdown --to=html5 --number-sections -o rust.html rust.md
33+
pandoc --from=markdown --to=html5 --number-sections -o reference.html reference.md
3434
~~~~
3535

3636
(rust.md being the Rust Reference Manual.)

trunk/src/doc/guide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,10 +2151,14 @@ In this case, we say `x` is a `uint` explicitly, so Rust is able to properly
21512151
tell `random()` what to generate. In a similar fashion, both of these work:
21522152

21532153
```{rust,ignore}
2154-
let input_num = from_str::<uint>("5");
2154+
let input_num = from_str::<Option<uint>>("5");
21552155
let input_num: Option<uint> = from_str("5");
21562156
```
21572157

2158+
In this case, I happen to prefer the latter, and in the `random()` case, I prefer
2159+
the former. I think the nested `<>`s make the first option especially ugly and
2160+
a bit harder to read.
2161+
21582162
Anyway, with us now converting our input to a number, our code looks like this:
21592163

21602164
```{rust,ignore}

trunk/src/doc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ development of Rust itself is discussed.
4646
# Specification
4747

4848
Rust does not have an exact specification, but an effort to describe as much of
49-
the language in as much detail as possible is in [the manual](rust.html).
49+
the language in as much detail as possible is in [the reference](reference.html).
5050

5151
# Guides
5252

trunk/src/doc/intro.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ Here's some code:
300300
use std::sync::Arc;
301301
302302
fn main() {
303-
let numbers = Arc::new(vec![1i, 2i, 3i]);
303+
let numbers = vec![1i, 2i, 3i];
304+
let numbers = Arc::new(numbers);
304305
305306
for num in range(0u, 3) {
306307
let (tx, rx) = channel();
@@ -345,7 +346,8 @@ and modify it to mutate the shared state:
345346
use std::sync::{Arc, Mutex};
346347
347348
fn main() {
348-
let numbers_lock = Arc::new(Mutex::new(vec![1i, 2i, 3i]));
349+
let numbers = vec![1i, 2i, 3i];
350+
let numbers_lock = Arc::new(Mutex::new(numbers));
349351
350352
for num in range(0u, 3) {
351353
let (tx, rx) = channel();

trunk/src/doc/not_found.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Some things that might be helpful to you though:
1313

1414
## Reference
1515
* [The Rust official site](http://rust-lang.org)
16-
* [The Rust reference manual](http://doc.rust-lang.org/rust.html) (* [PDF](http://doc.rust-lang.org/rust.pdf))
16+
* [The Rust reference](http://doc.rust-lang.org/reference.html) (* [PDF](http://doc.rust-lang.org/reference.pdf))
1717

1818
## Docs
1919
* [The standard library](http://doc.rust-lang.org/std/)

0 commit comments

Comments
 (0)