]> Cypherpunks repositories - gostls13.git/commitdiff
io/fs: don't use absolute path in DirEntry.Name doc
authorIan Lance Taylor <iant@golang.org>
Sat, 31 Jul 2021 22:39:08 +0000 (15:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 2 Aug 2021 17:18:57 +0000 (17:18 +0000)
Fixes #47485

Change-Id: I64ac00905a403b7594c706141679051a93058a31
Reviewed-on: https://go-review.googlesource.com/c/go/+/338889
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/io/fs/fs.go

index e1be32478e02986b59ba7f57945df7cfdd784391..e603afadb0b1b166e646ed0be6a11c98333fb798 100644 (file)
@@ -86,7 +86,7 @@ type File interface {
 type DirEntry interface {
        // Name returns the name of the file (or subdirectory) described by the entry.
        // This name is only the final element of the path (the base name), not the entire path.
-       // For example, Name would return "hello.go" not "/home/gopher/hello.go".
+       // For example, Name would return "hello.go" not "home/gopher/hello.go".
        Name() string
 
        // IsDir reports whether the entry describes a directory.