mirror of
https://github.com/mainmatter/100-exercises-to-learn-rust
synced 2024-12-26 21:58:49 +01:00
Fix typo in code snippet.
This commit is contained in:
parent
2f2a2a335b
commit
2bbdf9ff13
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ Every time you write a `for` loop in Rust, the compiler _desugars_ it into the f
|
|||
```rust
|
||||
let mut iter = IntoIterator::into_iter(v);
|
||||
loop {
|
||||
match v.next() {
|
||||
match iter.next() {
|
||||
Some(n) => {
|
||||
println!("{}", n);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue