diff --git a/copy.go b/copy.go index eea5f80..8793276 100644 --- a/copy.go +++ b/copy.go @@ -14,7 +14,7 @@ const ( tmpPermissionForDirectory = os.FileMode(0755) ) -// Copy copies src to dest, doesn't matter if src is a directory or a file +// Copy copies src to dest, doesn't matter if src is a directory or a file. func Copy(src, dest string, opt ...Options) error { info, err := os.Lstat(src) if err != nil { @@ -134,7 +134,8 @@ func lcopy(src, dest string) error { } // fclose ANYHOW closes file, -// with asiging error occured BUT respecting the error already reported. +// with asiging error raised during Close, +// BUT respecting the error already reported. func fclose(f *os.File, reported *error) { if err := f.Close(); *reported == nil { *reported = err @@ -142,7 +143,8 @@ func fclose(f *os.File, reported *error) { } // chmod ANYHOW changes file mode, -// with asiging error occured BUT respecting the error already reported. +// with asiging error raised during Chmod, +// BUT respecting the error already reported. func chmod(dir string, mode os.FileMode, reported *error) { if err := os.Chmod(dir, mode); *reported == nil { *reported = err