Skip to content

Commit eafcb36

Browse files
committed
---
yaml --- r: 32173 b: refs/heads/dist-snap c: 8337fa1 h: refs/heads/master i: 32171: 27ee71a v: v3
1 parent 3d605a6 commit eafcb36

File tree

331 files changed

+4940
-4937
lines changed

Some content is hidden

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

331 files changed

+4940
-4937
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: d9a6a6365327ac156ef3102e2b7efae1b2be5934
10+
refs/heads/dist-snap: 8337fa1a545e7958389c6025661990eedd9c1b91
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/doc/rust.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -842,14 +842,14 @@ An example of imports:
842842
import foo = core::info;
843843
import core::float::sin;
844844
import core::str::{slice, to_upper};
845-
import core::option::some;
845+
import core::option::Some;
846846
847847
fn main() {
848848
// Equivalent to 'log(core::info, core::float::sin(1.0));'
849849
log(foo, sin(1.0));
850850
851-
// Equivalent to 'log(core::info, core::option::some(1.0));'
852-
log(info, some(1.0));
851+
// Equivalent to 'log(core::info, core::option::Some(1.0));'
852+
log(info, Some(1.0));
853853
854854
// Equivalent to 'log(core::info,
855855
// core::str::to_upper(core::str::slice(~"foo", 0u, 1u)));'
@@ -2229,14 +2229,14 @@ consist of a bool-typed expression following the `if` keyword. A pattern
22292229
guard may refer to the variables bound within the pattern they follow.
22302230

22312231
~~~~
2232-
# let maybe_digit = some(0);
2232+
# let maybe_digit = Some(0);
22332233
# fn process_digit(i: int) { }
22342234
# fn process_other(i: int) { }
22352235
22362236
let message = match maybe_digit {
2237-
some(x) if x < 10 => process_digit(x),
2238-
some(x) => process_other(x),
2239-
none => fail
2237+
Some(x) if x < 10 => process_digit(x),
2238+
Some(x) => process_other(x),
2239+
None => fail
22402240
};
22412241
~~~~
22422242

branches/dist-snap/doc/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ Rust's type inferrer works very well with generics, but there are
19641964
programs that just can't be typed.
19651965

19661966
~~~~
1967-
let n = option::none;
1967+
let n = option::None;
19681968
# option::iter(n, fn&(&&x:int) {})
19691969
~~~~
19701970

@@ -1974,9 +1974,9 @@ you really want to have such a statement, you'll have to write it like
19741974
this:
19751975

19761976
~~~~
1977-
let n2: option<int> = option::none;
1977+
let n2: Option<int> = option::None;
19781978
// or
1979-
let n = option::none::<int>;
1979+
let n = option::None::<int>;
19801980
~~~~
19811981

19821982
Note that, in a value expression, `<` already has a meaning as a

0 commit comments

Comments
 (0)