]> Cypherpunks repositories - gostls13.git/commitdiff
os: document that Remove removes only empty directories
authorIan Lance Taylor <iant@golang.org>
Fri, 3 Aug 2018 16:55:44 +0000 (09:55 -0700)
committerRob Pike <r@golang.org>
Fri, 3 Aug 2018 23:09:31 +0000 (23:09 +0000)
Fixes #26507

Change-Id: I967e4f897ca891c70ca8bb0e66b984530c240815
Reviewed-on: https://go-review.googlesource.com/127835
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/os/file_unix.go

index 4f80553a18f683f4d52bb517203a2ed8cf6db753..cb90b7073580e6c36d1adc278ae977275d761be5 100644 (file)
@@ -296,7 +296,7 @@ func Truncate(name string, size int64) error {
        return nil
 }
 
-// Remove removes the named file or directory.
+// Remove removes the named file or (empty) directory.
 // If there is an error, it will be of type *PathError.
 func Remove(name string) error {
        // System call interface forces us to know