]> Cypherpunks repositories - gostls13.git/commitdiff
ios/fs: mention f.dir in (*subFS).fixErr godoc
authorTobias Klauser <tklauser@distanz.ch>
Tue, 16 Feb 2021 09:36:10 +0000 (10:36 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 23 Feb 2021 09:16:54 +0000 (09:16 +0000)
There is no dir parameter to (f *subFS).fixErr.

Change-Id: I49e42bac5e102cfab0d289658d9871429cfec515
Reviewed-on: https://go-review.googlesource.com/c/go/+/292389
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/io/fs/sub.go

index 64cdffe6dec76251fc682dd7ec488f19365d2b7e..d689b9e2bcfb3a82fe30235210d0bc9966388a86 100644 (file)
@@ -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 {