diff options
author | Russ Cox <rsc@golang.org> | 2020-12-07 15:20:37 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-12-07 21:01:46 +0000 |
commit | 7ad6596c4711c48ef95334c9c6516a0c30979bd9 (patch) | |
tree | 2015572431ddaf9d57bc2647dc457ed55fd586d1 /src/io | |
parent | 50cdb2d8e9ca8d7b79a05121c88271b46f7c9607 (diff) | |
download | go-7ad6596c4711c48ef95334c9c6516a0c30979bd9.tar.gz go-7ad6596c4711c48ef95334c9c6516a0c30979bd9.zip |
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>
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/fs/sub.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/fs/sub.go b/src/io/fs/sub.go index 381f409504..64cdffe6de 100644 --- a/src/io/fs/sub.go +++ b/src/io/fs/sub.go @@ -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 } |