diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-09-17 08:49:28 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-09-17 08:49:28 -0700 |
| commit | 9dfcb41926714a6e9cc5db50b7417c48d3e2ab05 (patch) | |
| tree | 2249a4471741567805cbea96166bbdab4aa88de5 | |
| parent | f4da040e62d55bb6ab28b7605d4ee12ef6f969a1 (diff) | |
| parent | 7ce2ea0d148a3a7c9ad0f156c8e08a2e6482265f (diff) | |
| download | rust-9dfcb41926714a6e9cc5db50b7417c48d3e2ab05.tar.gz rust-9dfcb41926714a6e9cc5db50b7417c48d3e2ab05.zip | |
rollup merge of #17292 : thestinger/tasks
| -rw-r--r-- | src/doc/guide-tasks.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-tasks.md b/src/doc/guide-tasks.md index 95bcc9ca12b..4a978ccb92b 100644 --- a/src/doc/guide-tasks.md +++ b/src/doc/guide-tasks.md @@ -235,7 +235,7 @@ fn partial_sum(start: uint) -> f64 { } fn main() { - let mut futures = Vec::from_fn(1000, |ind| Future::spawn( proc() { partial_sum(ind) })); + let mut futures = Vec::from_fn(200, |ind| Future::spawn( proc() { partial_sum(ind) })); let mut final_res = 0f64; for ft in futures.iter_mut() { |
