io/fs: invalid path in DirEntry.Name documentation example #47485
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The example in the documentation of the
DirEntry.Name
method, in theio/fs
package, refers to the path/home/gopher/hello.go
but it cannot be the entire path because it is not a valid path. It should be
home/gopher/hello.go
, without the leading slash.The text was updated successfully, but these errors were encountered: