6 ms·
There'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
by dhruvkb 2y ago
There'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 2y 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); }