1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:21:37 -07:00

io/fs: fix Sub method error text

Noticed in (and alternative to) CL 275520.

Change-Id: If6c107ee9928dd1910facd4dc66da7234cb91c39
Reviewed-on: https://go-review.googlesource.com/c/go/+/275879
Trust: Russ Cox <rsc@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Russ Cox 2020-12-07 15:20:37 -05:00
parent 50cdb2d8e9
commit 7ad6596c47

View File

@ -88,7 +88,7 @@ func (f *subFS) Open(name string) (File, error) {
}
func (f *subFS) ReadDir(name string) ([]DirEntry, error) {
full, err := f.fullName("open", name)
full, err := f.fullName("read", name)
if err != nil {
return nil, err
}
@ -97,7 +97,7 @@ func (f *subFS) ReadDir(name string) ([]DirEntry, error) {
}
func (f *subFS) ReadFile(name string) ([]byte, error) {
full, err := f.fullName("open", name)
full, err := f.fullName("read", name)
if err != nil {
return nil, err
}