diff --git a/day-5/src/main.rs b/day-5/src/main.rs index 7fbf256..b3e6d96 100644 --- a/day-5/src/main.rs +++ b/day-5/src/main.rs @@ -67,7 +67,7 @@ fn find_seat(code: SeatCode) -> (usize, usize) { }; let row = code[..7].iter().fold((0, 127), binary_follow).0; - let col = code[7..].iter().take(3).fold((0, 7), binary_follow).0; + let col = code[7..].iter().fold((0, 7), binary_follow).0; (row, col) }