mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Bugfix that probably won't affect any actual input
This commit is contained in:
@@ -7,7 +7,7 @@ use crate::common::IndexSet;
|
|||||||
|
|
||||||
fn can_travel(from: u8, to: u8) -> bool {
|
fn can_travel(from: u8, to: u8) -> bool {
|
||||||
match (from, to) {
|
match (from, to) {
|
||||||
(b'S', b'a'..=b'z') => true,
|
(b'S', b'a'..=b'b') => true,
|
||||||
(b'y'..=b'z', b'E') => true,
|
(b'y'..=b'z', b'E') => true,
|
||||||
(b'a'..=b'z', b'a'..=b'z') => to <= from || to - from == 1,
|
(b'a'..=b'z', b'a'..=b'z') => to <= from || to - from == 1,
|
||||||
_ => false,
|
_ => false,
|
||||||
|
|||||||
Reference in New Issue
Block a user