diff --git a/pkg/ioutil/util.go b/pkg/ioutil/util.go index d7ed18b45..9acc79830 100644 --- a/pkg/ioutil/util.go +++ b/pkg/ioutil/util.go @@ -19,7 +19,7 @@ import ( "os" ) -// WriteAndSyncFile behaviors just like ioutil.WriteFile in standard library +// WriteAndSyncFile behaves just like ioutil.WriteFile in the standard library, // but calls Sync before closing the file. WriteAndSyncFile guarantees the data // is synced if there is no error returned. func WriteAndSyncFile(filename string, data []byte, perm os.FileMode) error {