Merge pull request #99 from lukelafountaine/master

remove extraneous and potentially confusing variable declaration
This commit is contained in:
Carol (Nichols || Goulding)
2016-06-27 17:16:40 -04:00
committed by GitHub
-1
View File
@@ -183,7 +183,6 @@ Instead, we can use our last kind of loop: the `for` loop. It looks like this:
```rust ```rust
fn main() { fn main() {
let a = [1, 2, 3, 4, 5]; let a = [1, 2, 3, 4, 5];
let mut index = 0;
for element in a.iter() { for element in a.iter() {
println!("the value is: {}", element); println!("the value is: {}", element);