diff --git a/src/Day1.hs b/src/Day1.hs index b78ba5e..5b011b1 100644 --- a/src/Day1.hs +++ b/src/Day1.hs @@ -22,7 +22,7 @@ partOne filepath = do return score where -- To calculate the overall score we just need to - -- sort the lists and calculate the distances of each element + -- sort the lists and calculate the distances between each element calculateScore (left, right) = sum $ zipWith distance (sort left) (sort right) distance a b = abs (a - b)