From e2d1ec8c91acca2ed6c9a824353fcfac7fd0a4d0 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 12 Dec 2022 22:32:41 +0100 Subject: [PATCH] Bugfix that probably won't affect any actual input --- 2022/src/day12.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2022/src/day12.rs b/2022/src/day12.rs index ef6033b..d3816f8 100644 --- a/2022/src/day12.rs +++ b/2022/src/day12.rs @@ -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,