Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,12 @@ The keywords are the following strings:
as
break
crate
do
else enum extern
false fn for
if impl in
let loop
match mod mut
priv pub
priv proc pub
ref return
self static struct super
true trait type
Expand Down Expand Up @@ -2558,12 +2557,12 @@ task in a _failing state_.

~~~~ {.ignore}
# use std::task;
# do task::spawn {
# task::spawn(proc() {

([1, 2, 3, 4])[0];
(["a", "b"])[10]; // fails

# }
# })
~~~~

### Unary operator expressions
Expand Down
4 changes: 2 additions & 2 deletions src/doc/rustdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ that one can still write things like `#[deriving(Eq)]`).
# // what's actually being documented.
# fn fib(n: int) { n + 2 }

do spawn { fib(200); }
spawn(proc() { fib(200); })
```
*/
# fn foo() {}

The documentation online would look like `do spawn { fib(200); }`, but when
The documentation online would look like `spawn(proc() { fib(200); })`, but when
testing this code, the `fib` function will be included (so it can compile).

## Running tests (advanced)
Expand Down