From c02820bcb970098c5b6562e5c46029314c5d6103 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Thu, 5 Dec 2024 16:15:54 +0100 Subject: [PATCH] update 2024/day2 --- 2024/02/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }