Hacker News new | ask | show | jobs
by dhruvkb 808 days 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);
  }
1 comments

This 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);
  }