Skip to content

Commit

Permalink
Added # let lines = "hello\nworld".lines(); to pass the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
azerupi committed Jun 1, 2015
1 parent 90057c2 commit c4f42a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doc/trpl/for-loops.md
Expand Up @@ -69,6 +69,7 @@ Don't forget to add the parentheses around the range.
## On iterators:

```rust
# let lines = "hello\nworld".lines();
for (linenumber, line) in lines.enumerate() {
println!("{}: {}", linenumber, line);
}
Expand Down

0 comments on commit c4f42a1

Please sign in to comment.