diff --git a/20231201/trebuchet.go b/20231201/trebuchet.go index 409eca4..f57a603 100644 --- a/20231201/trebuchet.go +++ b/20231201/trebuchet.go @@ -110,6 +110,7 @@ func CombineIndexes(s string) int { func main() { file, err := os.Open("input") check(err) + defer file.Close() var firstTotal int = 0 var secondTotal int = 0