Skip to content

Commit 9dfcb41

Browse files
committed
rollup merge of rust-lang#17292 : thestinger/tasks
2 parents f4da040 + 7ce2ea0 commit 9dfcb41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fn partial_sum(start: uint) -> f64 {
235235
}
236236
237237
fn main() {
238-
let mut futures = Vec::from_fn(1000, |ind| Future::spawn( proc() { partial_sum(ind) }));
238+
let mut futures = Vec::from_fn(200, |ind| Future::spawn( proc() { partial_sum(ind) }));
239239
240240
let mut final_res = 0f64;
241241
for ft in futures.iter_mut() {

0 commit comments

Comments
 (0)