mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
50cdb2d8e9
commit
7ad6596c47
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue