Skip to content

Commit 93b4a57

Browse files
author
Olivier Saut
committed
Fix typo
1 parent 0895f72 commit 93b4a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial-tasks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ be distributed on the available cores.
312312
fn partial_sum(start: uint) -> f64 {
313313
let mut local_sum = 0f64;
314314
for uint::range(start*100000, (start+1)*100000) |num| {
315-
local_sum += (num as f64 + 1).pow(-2.0);
315+
local_sum += (num as f64 + 1.0).pow(-2.0);
316316
}
317317
local_sum
318318
}

0 commit comments

Comments
 (0)