Tweak comment
This commit is contained in:
@@ -41,7 +41,8 @@ func writeFile(f *os.File) {
|
||||
func closeFile(f *os.File) {
|
||||
fmt.Println("closing")
|
||||
err := f.Close()
|
||||
// It is important to check for errors when closing a file, even in a deferred function.
|
||||
// It's important to check for errors when closing a
|
||||
// file, even in a deferred function.
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "error: %v\n", err)
|
||||
os.Exit(1)
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
4e2229c593e102d4efd101a7e9aa21f3345e90d1
|
||||
S2RuPTkABip
|
||||
fadbe9c05bb42db672316ba19adf3c2189c7b3f5
|
||||
OrCaBiCrTKq
|
||||
|
||||
Reference in New Issue
Block a user