From c3fcf7a689fabb6677b8260f307faaae8a23beb0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 6 Nov 2021 13:36:09 +0100 Subject: Close the input file after reading --- 2015/20/puzzles.go | 1 + 1 file changed, 1 insertion(+) (limited to '2015/20') diff --git a/2015/20/puzzles.go b/2015/20/puzzles.go index 5f2d37f..e734f2e 100644 --- a/2015/20/puzzles.go +++ b/2015/20/puzzles.go @@ -43,6 +43,7 @@ func main() { var n int fmt.Fscanf(file, "%d", &n) + file.Close() /* START PART 2 */ sn := n / 11 /* END PART 2 START PART 1 */ -- cgit v1.2.3