about summary refs log tree commit diff
path: root/src/doc/guide-tasks.md
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2014-11-26 10:02:46 -0500
committerNiko Matsakis <niko@alum.mit.edu>2014-12-14 04:21:57 -0500
commit112faabf949749488f0c2fd51098ff2feb1f6e1c (patch)
treef643471e4325ad6762c111b7d67a8805050afa23 /src/doc/guide-tasks.md
parent27676d9aa96bd68f8560ade8b9fa61c9298874ea (diff)
downloadrust-112faabf949749488f0c2fd51098ff2feb1f6e1c.tar.gz
rust-112faabf949749488f0c2fd51098ff2feb1f6e1c.zip
Update guide/intro to take into account the removal of `proc`.
cc @steveklabnick
Diffstat (limited to 'src/doc/guide-tasks.md')
-rw-r--r--src/doc/guide-tasks.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-tasks.md b/src/doc/guide-tasks.md
index 1938d3e3878..4adca43be18 100644
--- a/src/doc/guide-tasks.md
+++ b/src/doc/guide-tasks.md
@@ -30,7 +30,7 @@ fn print_message() { println!("I am running in a different task!"); }
 spawn(print_message);
 
 // Alternatively, use a `move ||` expression instead of a named function.
-// `||` expressions evaluate to an unnamed closures. The `move` keyword
+// `||` expressions evaluate to an unnamed closure. The `move` keyword
 // indicates that the closure should take ownership of any variables it
 // touches.
 spawn(move || println!("I am also running in a different task!"));
@@ -44,7 +44,7 @@ details to the standard library.
 The `spawn` function has the type signature: `fn
 spawn<F:FnOnce()+Send>(f: F)`.  This indicates that it takes as
 argument a closure (of type `F`) that it will run exactly once. This
-closure is limited to capturing `Send`-able data form its environment
+closure is limited to capturing `Send`-able data from its environment
 (that is, data which is deeply owned). Limiting the closure to `Send`
 ensures that `spawn` can safely move the entire closure and all its
 associated state into an entirely different task for execution.