From: Ian Lance Taylor Date: Sat, 31 Jul 2021 22:39:08 +0000 (-0700) Subject: io/fs: don't use absolute path in DirEntry.Name doc X-Git-Tag: go1.17~4^2~15 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8a7ee4c51e992174d432ce0f40d9387a32d6ee4a;p=gostls13.git io/fs: don't use absolute path in DirEntry.Name doc Fixes #47485 Change-Id: I64ac00905a403b7594c706141679051a93058a31 Reviewed-on: https://go-review.googlesource.com/c/go/+/338889 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Go Bot Reviewed-by: Dmitri Shuralyov --- diff --git a/src/io/fs/fs.go b/src/io/fs/fs.go index e1be32478e..e603afadb0 100644 --- a/src/io/fs/fs.go +++ b/src/io/fs/fs.go @@ -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.