From 2bbdf9ff137e1bd0176fd2d2f9f90bbe7e089e3e Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 16 May 2024 12:43:11 +0200 Subject: [PATCH] Fix typo in code snippet. --- book/src/06_ticket_management/04_iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }