From 5b89e40a073ce6859636fa8ef8dc92b0adb4291b Mon Sep 17 00:00:00 2001 From: Luke LaFountaine Date: Sat, 14 May 2016 20:13:03 -0700 Subject: [PATCH] remove extraneous and potentially confusing variable declaration --- src/loops.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/loops.md b/src/loops.md index 31f065e..7c73efc 100644 --- a/src/loops.md +++ b/src/loops.md @@ -183,7 +183,6 @@ Instead, we can use our last kind of loop: the `for` loop. It looks like this: ```rust fn main() { let a = [1, 2, 3, 4, 5]; - let mut index = 0; for element in a.iter() { println!("the value is: {}", element);