Browse Source

Fix swapped x and y in log import

master
Jirka Sejkora 4 years ago
parent
commit
d4093d6000
  1. 2
      src/import-logs.rs

2
src/import-logs.rs

@ -52,8 +52,8 @@ fn main() {
},
State::In(count) => {
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 x: usize = parts.next().unwrap().parse().expect("Failed to read x");
houses.push(House {x, y});
if count == 1 {

Loading…
Cancel
Save