mirror of
https://github.com/onyx-and-iris/aoc2023.git
synced 2026-04-09 23:33:30 +00:00
label already r trimmed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user