Skip to content

Commit

Permalink
Merge pull request #179 from bodgit/doc
Browse files Browse the repository at this point in the history
Fix Reader.Reset() docs
  • Loading branch information
pierrec committed May 13, 2022
2 parents b8cae7c + 9dece95 commit c6ed913
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions reader.go
Expand Up @@ -196,10 +196,8 @@ func (r *Reader) read(buf []byte) (int, error) {
}

// Reset clears the state of the Reader r such that it is equivalent to its
// initial state from NewReader, but instead writing to writer.
// initial state from NewReader, but instead reading from reader.
// No access to reader is performed.
//
// w.Close must be called before Reset.
func (r *Reader) Reset(reader io.Reader) {
if r.data != nil {
lz4block.Put(r.data)
Expand Down

0 comments on commit c6ed913

Please sign in to comment.