Skip to content

Commit

Permalink
io/fs: don't use absolute path in DirEntry.Name doc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ianlancetaylor committed Aug 2, 2021
1 parent b8ca6e5 commit 8a7ee4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8a7ee4c

Please sign in to comment.