aboutsummaryrefslogtreecommitdiff
path: root/day04/part1
diff options
context:
space:
mode:
Diffstat (limited to 'day04/part1')
-rwxr-xr-xday04/part12
1 files changed, 1 insertions, 1 deletions
diff --git a/day04/part1 b/day04/part1
index 91d38b4..808d5fb 100755
--- a/day04/part1
+++ b/day04/part1
@@ -24,7 +24,7 @@ end
times = []
guards.each do |id, days|
sum = 0
- days.each do |day|
+ days.each_value do |day|
sum += day.count(true)
end
times[id] = sum