Fix typo in code snippet.
authorLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Thu, 16 May 2024 10:43:11 +0000 (12:43 +0200)
committerLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Thu, 16 May 2024 10:43:11 +0000 (12:43 +0200)
book/src/06_ticket_management/04_iterators.md

index 21345ac..57d3bf0 100644 (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);
         }