Fix x range

This commit is contained in:
Joscha 2023-01-23 13:13:14 +01:00
parent d1b33758ce
commit 7b50e1de2c

View file

@ -50,7 +50,7 @@ fn main() -> anyhow::Result<()> {
lines.push(line_count); lines.push(line_count);
} }
let xmax = lines.len(); let xmax = lines.len() - 1;
let ymax = lines.iter().copied().max().unwrap_or(0); let ymax = lines.iter().copied().max().unwrap_or(0);
let lines = lines let lines = lines
.into_iter() .into_iter()