File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,12 @@ The keywords are the following strings:
206
206
as
207
207
break
208
208
crate
209
- do
210
209
else enum extern
211
210
false fn for
212
211
if impl in
213
212
let loop
214
213
match mod mut
215
- priv pub
214
+ priv proc pub
216
215
ref return
217
216
self static struct super
218
217
true trait type
@@ -2558,12 +2557,12 @@ task in a _failing state_.
2558
2557
2559
2558
~~~~ {.ignore}
2560
2559
# use std::task;
2561
- # do task::spawn {
2560
+ # task::spawn(proc() {
2562
2561
2563
2562
([1, 2, 3, 4])[0];
2564
2563
(["a", "b"])[10]; // fails
2565
2564
2566
- # }
2565
+ # })
2567
2566
~~~~
2568
2567
2569
2568
### Unary operator expressions
Original file line number Diff line number Diff line change @@ -165,12 +165,12 @@ that one can still write things like `#[deriving(Eq)]`).
165
165
# // what's actually being documented.
166
166
# fn fib(n: int) { n + 2 }
167
167
168
- do spawn { fib(200); }
168
+ spawn(proc() { fib(200); })
169
169
```
170
170
*/
171
171
# fn foo() {}
172
172
173
- The documentation online would look like ` do spawn { fib(200); }` , but when
173
+ The documentation online would look like ` spawn(proc() { fib(200); }) ` , but when
174
174
testing this code, the ` fib ` function will be included (so it can compile).
175
175
176
176
## Running tests (advanced)
You can’t perform that action at this time.
0 commit comments