We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0895f72 commit 93b4a57Copy full SHA for 93b4a57
doc/tutorial-tasks.md
@@ -312,7 +312,7 @@ be distributed on the available cores.
312
fn partial_sum(start: uint) -> f64 {
313
let mut local_sum = 0f64;
314
for uint::range(start*100000, (start+1)*100000) |num| {
315
- local_sum += (num as f64 + 1).pow(-2.0);
+ local_sum += (num as f64 + 1.0).pow(-2.0);
316
}
317
local_sum
318
0 commit comments