Skip to content

Commit 69d0d27

Browse files
committed
---
yaml --- r: 144551 b: refs/heads/try2 c: fcce7e8 h: refs/heads/master i: 144549: 2818536 144547: ca3dae2 144543: a0220e8 v: v3
1 parent 6083f1e commit 69d0d27

File tree

308 files changed

+3169
-4887
lines changed

Some content is hidden

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

308 files changed

+3169
-4887
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: ed422b88727807aee40495a6193a69e4c3842be1
8+
refs/heads/try2: fcce7e82dbbe6fe4a0230eeda1d2d6f4eb8ec81a
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ Some examples of call expressions:
22302230
# fn add(x: int, y: int) -> int { 0 }
22312231
22322232
let x: int = add(1, 2);
2233-
let pi: Option<f32> = FromStr::from_str("3.14");
2233+
let pi = FromStr::from_str::<f32>("3.14");
22342234
~~~~
22352235

22362236
### Lambda expressions

branches/try2/doc/tutorial-tasks.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,21 @@ do spawn {
113113
}
114114
~~~
115115

116+
By default, the scheduler multiplexes tasks across the available cores, running
117+
in parallel. Thus, on a multicore machine, running the following code
118+
should interleave the output in vaguely random order.
119+
120+
~~~
121+
# use std::io::print;
122+
# use std::task::spawn;
123+
124+
for child_task_number in range(0, 20) {
125+
do spawn {
126+
print(fmt!("I am child number %d\n", child_task_number));
127+
}
128+
}
129+
~~~
130+
116131
## Communication
117132

118133
Now that we have spawned a new task, it would be nice if we could

0 commit comments

Comments
 (0)