diff options
| author | bors <bors@rust-lang.org> | 2013-11-18 23:06:29 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-11-18 23:06:29 -0800 |
| commit | f4c22f75d46e94985d2fe45c896bde65e991b13d (patch) | |
| tree | b811656373ff40c6840da947869871c80eeda43f /doc/tutorial.md | |
| parent | f5f5d5aac762a554850d291165536ba752260303 (diff) | |
| parent | f977bedafd657b52fb618cc788cc31f35336270d (diff) | |
auto merge of #10561 : pcwalton/rust/procify, r=alexcrichton
r? @alexcrichton
Diffstat (limited to 'doc/tutorial.md')
| -rw-r--r-- | doc/tutorial.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md index 1b414c40834..313d36e38bf 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1409,7 +1409,7 @@ pervasively in Rust code. ## Owned closures -Owned closures, written `~fn` in analogy to the `~` pointer type, +Owned closures, written `proc`, hold on to things that can safely be sent between processes. They copy the values they close over, much like managed closures, but they also own them: that is, no other code can access @@ -1484,7 +1484,7 @@ parentheses, where it looks more like a typical block of code. `do` is a convenient way to create tasks with the `task::spawn` -function. `spawn` has the signature `spawn(fn: ~fn())`. In other +function. `spawn` has the signature `spawn(fn: proc())`. In other words, it is a function that takes an owned closure that takes no arguments. |
