diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-04-16 23:45:29 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-04-18 14:07:35 -0700 |
| commit | decd3901d5d63013a98ecc481c441f3f793b5207 (patch) | |
| tree | 37327a47db463003bcb8c5342fcecb04d56d1c64 /doc/tutorial-tasks.md | |
| parent | bc60d84507ba4d492889c9b702318346b5784e5c (diff) | |
core::comm: Modernize constructors to use `new`
Diffstat (limited to 'doc/tutorial-tasks.md')
| -rw-r--r-- | doc/tutorial-tasks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial-tasks.md b/doc/tutorial-tasks.md index 7831dc1d80f..bed69674830 100644 --- a/doc/tutorial-tasks.md +++ b/doc/tutorial-tasks.md @@ -236,7 +236,7 @@ Instead we can use a `SharedChan`, a type that allows a single use core::comm::{stream, SharedChan}; let (port, chan) = stream(); -let chan = SharedChan(chan); +let chan = SharedChan::new(chan); for uint::range(0, 3) |init_val| { // Create a new channel handle to distribute to the child task |
