Skip to content

Commit 43c044b

Browse files
committed
1 parent 64b8fc4 commit 43c044b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ebook/04.5.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@
113113
fmt.Println("error opening file")
114114
return err
115115
}
116-
116+
defer fh.Close()
117+
117118
//iocopy
118119
_, err = io.Copy(fileWriter, fh)
119120
if err != nil {

0 commit comments

Comments
 (0)