about summary refs log tree commit diff
path: root/src/doc/rust.md
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-04-04 17:32:46 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-04-04 17:33:20 -0700
commitfbba696a4686f0d4415ff728eb9441a2e0782e27 (patch)
tree33ef6ef26bb220d57ae8c8e6b5ab1711f96df3c6 /src/doc/rust.md
parent4cf8d8ce69c1d1d10e90b04230d4c4e8dbb67bcc (diff)
downloadrust-fbba696a4686f0d4415ff728eb9441a2e0782e27.tar.gz
rust-fbba696a4686f0d4415ff728eb9441a2e0782e27.zip
Remove references to obsolete `do` keyword
Also add the new `proc` keyword to the documentation.
Diffstat (limited to 'src/doc/rust.md')
-rw-r--r--src/doc/rust.md7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index f73b40a3ff4..96ec52c8cf9 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -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
@@ -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