Skip to content

Commit c4f42a1

Browse files
committed
Added # let lines = "hello\nworld".lines(); to pass the tests
1 parent 90057c2 commit c4f42a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/trpl/for-loops.md

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Don't forget to add the parentheses around the range.
6969
## On iterators:
7070

7171
```rust
72+
# let lines = "hello\nworld".lines();
7273
for (linenumber, line) in lines.enumerate() {
7374
println!("{}: {}", linenumber, line);
7475
}

0 commit comments

Comments
 (0)