Skip to content

Commit 0e8508c

Browse files
Refactor map
1 parent 78bcc70 commit 0e8508c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2022/day01/day01.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ func partOne(lines []string) {
2020
log.Println(elf, calories)
2121
}
2222

23-
func getElfMostCalories(mapp map[string]int) (string, int) {
23+
func getElfMostCalories(elfMap map[string]int) (string, int) {
2424
var elf string = "1"
2525
var calories int = 0
26-
for key, value := range mapp {
26+
for key, value := range elfMap {
2727
if value > calories {
2828
calories = value
2929
elf = key

0 commit comments

Comments
 (0)