Skip to content

Commit f5f741e

Browse files
committed
---
yaml --- r: 23511 b: refs/heads/master c: 8337fa1 h: refs/heads/master i: 23509: b57b8b5 23507: 5342288 23503: 764ba55 v: v3
1 parent 77401c4 commit f5f741e

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d9a6a6365327ac156ef3102e2b7efae1b2be5934
2+
refs/heads/master: 8337fa1a545e7958389c6025661990eedd9c1b91
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

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

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