Fix Reader.Reset() docs

This commit is contained in:
Matt Dainty 2022-05-12 18:31:16 +01:00
parent 34a5640cc1
commit f001d275a3
No known key found for this signature in database
GPG Key ID: D57145DF9EBCC9BA
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ func NewReader(src io.Reader) *Reader {
}
// Reset discards the Reader's state and makes it equivalent to the result of
// its original state from NewReader, but writing to src instead.
// its original state from NewReader, but reading from src instead.
// This permits reusing a Reader rather than allocating a new one.
// Error is always nil
func (r *Reader) Reset(src io.Reader) error {