Closed the file after opening
This commit is contained in:
parent
a5d31a6f03
commit
9d1c501b43
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user