Bugfix that probably won't affect any actual input

This commit is contained in:
2022-12-12 22:32:41 +01:00
parent d92e77cb88
commit e2d1ec8c91

View File

@@ -7,7 +7,7 @@ use crate::common::IndexSet;
fn can_travel(from: u8, to: u8) -> bool {
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'a'..=b'z', b'a'..=b'z') => to <= from || to - from == 1,
_ => false,