Fix typo in code snippet.

This commit is contained in:
LukeMathWalker 2024-05-16 12:43:11 +02:00
parent 2f2a2a335b
commit 2bbdf9ff13
1 changed files with 1 additions and 1 deletions

View File

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