From fbba696a4686f0d4415ff728eb9441a2e0782e27 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Fri, 4 Apr 2014 17:32:46 -0700 Subject: Remove references to obsolete `do` keyword Also add the new `proc` keyword to the documentation. --- src/doc/rustdoc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/doc/rustdoc.md') 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) -- cgit 1.4.1-3-g733a5