From 9ce494d427d43bf1c50cc35e1f18821cdc6701d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sat, 5 Dec 2020 21:12:34 +0000 Subject: [PATCH] fixup! Complete day 5.1 --- day-5/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }