Fix swapped x and y in log import

This commit is contained in:
Jirka Sejkora 2021-01-11 04:54:34 +01:00
parent 8e526c8c17
commit d4093d6000

View file

@ -52,8 +52,8 @@ fn main() {
}, },
State::In(count) => { State::In(count) => {
let mut parts = line.split_whitespace(); let mut parts = line.split_whitespace();
let x: usize = parts.next().unwrap().parse().expect("Failed to read x");
let y: usize = parts.next().unwrap().parse().expect("Failed to read y"); let y: usize = parts.next().unwrap().parse().expect("Failed to read y");
let x: usize = parts.next().unwrap().parse().expect("Failed to read x");
houses.push(House {x, y}); houses.push(House {x, y});
if count == 1 { if count == 1 {