Added # let lines = "hello\nworld".lines(); to pass the tests
This commit is contained in:
parent
90057c2962
commit
c4f42a1ab4
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue