mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
ios/fs: mention f.dir in (*subFS).fixErr godoc
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>
This commit is contained in:
parent
0398a771d2
commit
08543f0715
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ func (f *subFS) shorten(name string) (rel string, ok bool) {
|
||||||
return "", false
|
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 {
|
func (f *subFS) fixErr(err error) error {
|
||||||
if e, ok := err.(*PathError); ok {
|
if e, ok := err.(*PathError); ok {
|
||||||
if short, ok := f.shorten(e.Path); ok {
|
if short, ok := f.shorten(e.Path); ok {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue