Skip to content

Commit dbe4541

Browse files
committed
---
yaml --- r: 52726 b: refs/heads/dist-snap c: aa9c28e h: refs/heads/master v: v3
1 parent 44497d5 commit dbe4541

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: 9330b2f7b95a78e9737ee946d4143953f7a2212a
10+
refs/heads/dist-snap: aa9c28ef47d8b6a57e91b5468d70900d8e4172de
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/doc/rust.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ For example:
12341234

12351235
~~~~
12361236
trait Num {
1237-
static pure fn from_int(n: int) -> self;
1237+
static pure fn from_int(n: int) -> Self;
12381238
}
12391239
impl float: Num {
12401240
static pure fn from_int(n: int) -> float { n as float }
@@ -1743,7 +1743,6 @@ task in a _failing state_.
17431743
# do task::spawn_unlinked {
17441744
17451745
([1, 2, 3, 4])[0];
1746-
(['x', 'y'])[1] = 'z';
17471746
(["a", "b"])[10]; // fails
17481747
17491748
# }
@@ -1906,8 +1905,8 @@ No allocation or destruction is entailed.
19061905
An example of three different swap expressions:
19071906

19081907
~~~~~~~~
1909-
# let mut x = &[0];
1910-
# let mut a = &[0];
1908+
# let mut x = &mut [0];
1909+
# let mut a = &mut [0];
19111910
# let i = 0;
19121911
# let y = {mut z: 0};
19131912
# let b = {mut c: 0};
@@ -2002,7 +2001,7 @@ the unary copy operator is typically only used to cause an argument to a functio
20022001
An example of a copy expression:
20032002

20042003
~~~~
2005-
fn mutate(vec: ~[int]) {
2004+
fn mutate(mut vec: ~[int]) {
20062005
vec[0] = 10;
20072006
}
20082007

branches/dist-snap/doc/tutorial-tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ Finally, tasks can be configured to not propagate failure to each
440440
other at all, using `task::spawn_unlinked` for _isolated failure_.
441441

442442
~~~
443-
# fn random() -> int { 100 }
444-
# fn sleep_for(i: int) { for i.times { task::yield() } }
443+
# fn random() -> uint { 100 }
444+
# fn sleep_for(i: uint) { for i.times { task::yield() } }
445445
# do task::try::<()> {
446446
let (time1, time2) = (random(), random());
447447
do task::spawn_unlinked {

0 commit comments

Comments
 (0)