4 ms·
There should be no `b` here in the println, this looks like a typo: while let Some((a, a + 1)) = iterator.next() { println!("({}, {})", a, b); }
by croemer 3y ago
There should be no `b` here in the println, this looks like a typo:
while let Some((a, a + 1)) = iterator.next() {
println!("({}, {})", a, b);
}
- dhruvkb 3y agoThere's one more. if let (a, 2) = (1, 2) && let (c, 4) = (3, 4) && // should be b, not c b == a + 2 { println!("Made it, a = {}, b = {}", a, b); }
- codyd51 3y agoThis was a fun read, kudos to the author! Adding one more typo to this thread: if let (a, 2) = (1, 2) && let (b, 4) = (3, 4) && // <-- This should be an open brace. println!("Made it, a = {}, b = {}", a, b); }