remove extraneous and potentially confusing variable declaration

This commit is contained in:
Luke LaFountaine 2016-05-14 20:13:03 -07:00
parent 747245682d
commit 5b89e40a07

View File

@ -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);