diff --git a/2024/02/main.go b/2024/02/main.go index 2076a95..41c339b 100644 --- a/2024/02/main.go +++ b/2024/02/main.go @@ -43,7 +43,7 @@ func (r report) isSave() bool { 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]) { return false }