-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
ferrmin/go
#120Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
The example in the documentation of the DirEntry.Name method, in the io/fs package, refers to the path /home/gopher/hello.go
// 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".
Name() string
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DocumentationIssues describing a change to documentation.Issues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.