diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-07-31 15:39:08 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-08-02 17:18:57 +0000 |
commit | 8a7ee4c51e992174d432ce0f40d9387a32d6ee4a (patch) | |
tree | c184eb533af707ada4c504c8bdcfc19e92dc8225 | |
parent | b8ca6e59eda969c1d3aed9b0c5bd9e99cf0e7dfe (diff) | |
download | go-git-8a7ee4c51e992174d432ce0f40d9387a32d6ee4a.tar.gz |
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>
-rw-r--r-- | src/io/fs/fs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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. |