]> Cypherpunks.ru repositories - gostls13.git/commitdiff
archive/zip: fix documentation to mention fs.FS interface
authorArtyom Pervukhin <artyom.pervukhin@gmail.com>
Wed, 4 Nov 2020 12:28:25 +0000 (15:28 +0300)
committerDmitri Shuralyov <dmitshur@golang.org>
Sat, 7 Nov 2020 03:52:47 +0000 (03:52 +0000)
Fixes #42374

Change-Id: I0ed1eb052d79bcc65810b74bff48f1e615e1dc1e
Reviewed-on: https://go-review.googlesource.com/c/go/+/267657
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/archive/zip/reader.go

index 5c9f3dea28197133d28e3519c0f7429c5b916417..8b4e77875fb3e69c93406372e17d94bb3f1b7d91 100644 (file)
@@ -695,7 +695,7 @@ func fileEntryLess(x, y string) bool {
 }
 
 // Open opens the named file in the ZIP archive,
-// using the semantics of io.FS.Open:
+// using the semantics of fs.FS.Open:
 // paths are always slash separated, with no
 // leading / or ../ elements.
 func (r *Reader) Open(name string) (fs.File, error) {