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) } }