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

compress/gzip: document Reader.Read

Fixes #17374.

Change-Id: Ic89c35aaa31f35a8a4e3ffa09f49b68f08127625
Reviewed-on: https://go-review.googlesource.com/30718
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
This commit is contained in:
Emmanuel Odeke 2016-10-07 21:27:32 -07:00 committed by Joe Tsai
parent 9b6ced931e
commit 56d35d42e1

View File

@ -238,6 +238,7 @@ func (z *Reader) readHeader() (hdr Header, err error) {
return hdr, nil
}
// Read implements io.Reader, reading uncompressed bytes from its underlying Reader.
func (z *Reader) Read(p []byte) (n int, err error) {
if z.err != nil {
return 0, z.err