diff --git a/src/compress/flate/inflate.go b/src/compress/flate/inflate.go index 49921398e2..7efd4477ed 100644 --- a/src/compress/flate/inflate.go +++ b/src/compress/flate/inflate.go @@ -789,8 +789,8 @@ func (f *decompressor) Reset(r io.Reader, dict []byte) error { // to read the uncompressed version of r. // If r does not also implement io.ByteReader, // the decompressor may read more data than necessary from r. -// It is the caller's responsibility to call Close on the ReadCloser -// when finished reading. +// The reader returns io.EOF after the final block in the DEFLATE stream has +// been encountered. Any trailing data after the final block is ignored. // // The ReadCloser returned by NewReader also implements Resetter. func NewReader(r io.Reader) io.ReadCloser {