aboutsummaryrefslogtreecommitdiff
path: root/2015/20
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-11-06 13:36:09 +0100
committerThomas Voss <thomasvoss@live.com> 2021-11-06 13:36:09 +0100
commitc3fcf7a689fabb6677b8260f307faaae8a23beb0 (patch)
tree88664af29d9108d29a8e9fb57fb31b6ab7912a3b /2015/20
parentdafb3e27313470cd4cea664b24cd5dae6689d7d7 (diff)
Close the input file after reading
Diffstat (limited to '2015/20')
-rw-r--r--2015/20/puzzles.go1
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 */