diff --git a/year25/day12/day.go b/year25/day12/day.go index 274eb1c..ed16ba3 100644 --- a/year25/day12/day.go +++ b/year25/day12/day.go @@ -107,11 +107,11 @@ func parseInput(ctx aoc.Context) (input Input, err error) { var region Region parts := strings.Split(regionStr, ": ") for _, idstr := range strings.Split(parts[1], " ") { - id, err := strconv.Atoi(idstr) + count, err := strconv.Atoi(idstr) if err != nil { - return input, fmt.Errorf("day12: failed to parse region id: %w", err) + return input, fmt.Errorf("day12: failed to parse region count: %w", err) } - region.ShapeCounts = append(region.ShapeCounts, id) + region.ShapeCounts = append(region.ShapeCounts, count) } parts2 := strings.Split(parts[0], "x")