From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Thu, 16 May 2024 10:43:11 +0000 (+0200) Subject: Fix typo in code snippet. X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=2bbdf9ff137e1bd0176fd2d2f9f90bbe7e089e3e;p=rust_exercises.git Fix typo in code snippet. --- 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); }