Fix typo in code snippet.

This commit is contained in:
LukeMathWalker 2024-05-16 12:43:11 +02:00
parent 2f2a2a335b
commit 2bbdf9ff13

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