1
0
Fork 0

update 2024/day2

This commit is contained in:
Sebastian Mark 2024-12-05 16:15:54 +01:00
parent 60ce2fd24d
commit c02820bcb9

View file

@ -43,7 +43,7 @@ func (r report) isSave() bool {
return false return false
} }
for i := 0; i < len(r.levels)-1; i++ { // iterate til second last level for i := range len(r.levels) - 1 { // iterate til second last level
if !isValidLevelDifference(r.levels[i], r.levels[i+1]) { if !isValidLevelDifference(r.levels[i], r.levels[i+1]) {
return false return false
} }