diff --git a/day1/day1.lua b/day1/day1.lua index 4a51e17..d182e21 100644 --- a/day1/day1.lua +++ b/day1/day1.lua @@ -16,6 +16,8 @@ for Line in File:lines() do table.insert(RightList, tonumber(RightId)) end +File:close() + local function SortFunction(a, b) return a < b end @@ -40,5 +42,3 @@ for _, Distance in next, Distances do end print("Total distance:", TotalDistance) - -File:close()