Skip to content

Commit 8a7ee4c

Browse files
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent b8ca6e5 commit 8a7ee4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/fs/fs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type File interface {
8686
type DirEntry interface {
8787
// Name returns the name of the file (or subdirectory) described by the entry.
8888
// This name is only the final element of the path (the base name), not the entire path.
89-
// For example, Name would return "hello.go" not "/home/gopher/hello.go".
89+
// For example, Name would return "hello.go" not "home/gopher/hello.go".
9090
Name() string
9191

9292
// IsDir reports whether the entry describes a directory.

0 commit comments

Comments
 (0)