From 93b4a57b9a774ec781b6609119f0dad00af489b6 Mon Sep 17 00:00:00 2001 From: Olivier Saut Date: Thu, 16 May 2013 16:05:04 +0200 Subject: [PATCH] Fix typo --- doc/tutorial-tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial-tasks.md b/doc/tutorial-tasks.md index b315bcb6fece6..515c97329c9ce 100644 --- a/doc/tutorial-tasks.md +++ b/doc/tutorial-tasks.md @@ -312,7 +312,7 @@ be distributed on the available cores. fn partial_sum(start: uint) -> f64 { let mut local_sum = 0f64; for uint::range(start*100000, (start+1)*100000) |num| { - local_sum += (num as f64 + 1).pow(-2.0); + local_sum += (num as f64 + 1.0).pow(-2.0); } local_sum }