Added # let lines = "hello\nworld".lines(); to pass the tests

This commit is contained in:
Mathieu David 2015-06-01 21:34:31 +02:00
parent 90057c2962
commit c4f42a1ab4

View file

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