diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-05-05 13:24:54 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-05-05 13:24:54 +0200 |
| commit | 0fb1f3fd38e814e85b81ca412cdf508a038ead27 (patch) | |
| tree | 36f82e963c95333149945e739ed3e4c9e5548963 | |
| parent | dcde1ee16344c8587502c38bdb5b8f7f11c6fb5a (diff) | |
| download | rust-0fb1f3fd38e814e85b81ca412cdf508a038ead27.tar.gz rust-0fb1f3fd38e814e85b81ca412cdf508a038ead27.zip | |
Cleanup proc comment in guide-tasks.md.
| -rw-r--r-- | src/doc/guide-tasks.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/doc/guide-tasks.md b/src/doc/guide-tasks.md index b7cc85c4c1a..089f281b392 100644 --- a/src/doc/guide-tasks.md +++ b/src/doc/guide-tasks.md @@ -89,9 +89,10 @@ closure in the new task. fn print_message() { println!("I am running in a different task!"); } spawn(print_message); -// Print something more profound in a different task using a lambda expression -// This uses the proc() keyword to assign to spawn a function with no name -// That function will call println!(...) as requested +// Print something profound in a different task using a `proc` expression +// The `proc` expression evaluates to an (unnamed) owned closure. +// That closure will call `println!(...)` when the spawned task runs. + spawn(proc() println!("I am also running in a different task!") ); ~~~~ |
