Skip to content

Commit

Permalink
rollup merge of rust-lang#17292 : thestinger/tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 17, 2014
2 parents f4da040 + 7ce2ea0 commit 9dfcb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/guide-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9dfcb41

Please sign in to comment.