summary refs log tree commit diff
path: root/src/doc/rustdoc.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/rustdoc.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/rustdoc.md')
-rw-r--r--src/doc/rustdoc.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustdoc.md b/src/doc/rustdoc.md
index 5d41f297e7d..96419e1bfd2 100644
--- a/src/doc/rustdoc.md
+++ b/src/doc/rustdoc.md
@@ -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)