aboutsummaryrefslogtreecommitdiff
path: root/day04
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2018-12-04 14:18:49 +0000
committerNat Lasseter <user@4574.co.uk>2018-12-04 14:18:49 +0000
commit0d2a3c69cdec606598d9b03732fb4fa0de4ca3ed (patch)
treec00381b537442fa6e1e7cc61dea7cec7a7e9dc64 /day04
parent0c554c06e4a15a48dc53390aaaa9c46d0c293805 (diff)
[day04] part1 done
Diffstat (limited to 'day04')
-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