From 7faa19e15990a58fea2faa9acce66c0726098663 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 16 Dec 2023 00:21:45 +0000 Subject: [PATCH] label already r trimmed --- day-15/two.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day-15/two.go b/day-15/two.go index fed86d9..f4e8aaa 100644 --- a/day-15/two.go +++ b/day-15/two.go @@ -30,7 +30,7 @@ func two(lines []string) int { if strings.Contains(lense, "=") { boxes[boxId].Set(label, focalLength) } else { - boxes[boxId].Delete(strings.TrimRight(label, "-")) + boxes[boxId].Delete(label) } }