diff --git a/src/io/fs/sub.go b/src/io/fs/sub.go index 64cdffe6dec..d689b9e2bcf 100644 --- a/src/io/fs/sub.go +++ b/src/io/fs/sub.go @@ -68,7 +68,7 @@ func (f *subFS) shorten(name string) (rel string, ok bool) { return "", false } -// fixErr shortens any reported names in PathErrors by stripping dir. +// fixErr shortens any reported names in PathErrors by stripping f.dir. func (f *subFS) fixErr(err error) error { if e, ok := err.(*PathError); ok { if short, ok := f.shorten(e.Path); ok {