Fix swapped x and y in log import
This commit is contained in:
parent
8e526c8c17
commit
d4093d6000
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue