Skip to content

Commit 501e4d7

Browse files
authored
zstd: Read doc typo
should say "read"
1 parent 826a08c commit 501e4d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zstd/decoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func NewReader(r io.Reader, opts ...DOption) (*Decoder, error) {
123123
}
124124

125125
// Read bytes from the decompressed stream into p.
126-
// Returns the number of bytes written and any error that occurred.
126+
// Returns the number of bytes read and any error that occurred.
127127
// When the stream is done, io.EOF will be returned.
128128
func (d *Decoder) Read(p []byte) (int, error) {
129129
var n int

0 commit comments

Comments
 (0)