diff --git a/book/src/06_ticket_management/04_iterators.md b/book/src/06_ticket_management/04_iterators.md index 21345ac..57d3bf0 100644 --- a/book/src/06_ticket_management/04_iterators.md +++ b/book/src/06_ticket_management/04_iterators.md @@ -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); }