diff options
author | Thomas Voss <thomasvoss@live.com> | 2021-11-06 13:36:09 +0100 |
---|---|---|
committer | Thomas Voss <thomasvoss@live.com> | 2021-11-06 13:36:09 +0100 |
commit | c3fcf7a689fabb6677b8260f307faaae8a23beb0 (patch) | |
tree | 88664af29d9108d29a8e9fb57fb31b6ab7912a3b /2015 | |
parent | dafb3e27313470cd4cea664b24cd5dae6689d7d7 (diff) |
Close the input file after reading
Diffstat (limited to '2015')
-rw-r--r-- | 2015/20/puzzles.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |