mirror of
https://github.com/golang/go
synced 2024-11-02 09:03:03 +00:00
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 <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>
This commit is contained in:
parent
b8ca6e59ed
commit
8a7ee4c51e
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ type File interface {
|
||||||
type DirEntry interface {
|
type DirEntry interface {
|
||||||
// Name returns the name of the file (or subdirectory) described by the entry.
|
// 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.
|
// 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
|
Name() string
|
||||||
|
|
||||||
// IsDir reports whether the entry describes a directory.
|
// IsDir reports whether the entry describes a directory.
|
||||||
|
|
Loading…
Reference in a new issue