Improved error for wrong amount of lines
This commit is contained in:
parent
1b70661986
commit
89a62bf7b3
|
@ -71,7 +71,7 @@ impl aoc::Solver for Day {
|
||||||
if let [a, b, c] = group {
|
if let [a, b, c] = group {
|
||||||
(a, b, c)
|
(a, b, c)
|
||||||
} else {
|
} else {
|
||||||
panic!("Invalid input")
|
panic!("The total amount of lines should be a multiple of 3")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.map(|(a, b, c)| {
|
.map(|(a, b, c)| {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user