Tweak comment

This commit is contained in:
Mark McGranaghan
2019-06-30 14:11:14 -07:00
parent 4049eef353
commit 3d55c3ae33
3 changed files with 7 additions and 5 deletions

View File

@@ -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)

View File

@@ -1,2 +1,2 @@
4e2229c593e102d4efd101a7e9aa21f3345e90d1
S2RuPTkABip
fadbe9c05bb42db672316ba19adf3c2189c7b3f5
OrCaBiCrTKq