Skip to content

Commit 7d0e9e6

Browse files
ujiianlancetaylor
authored andcommitted
image/gif: fix typo in the comment (io.ReadByte -> io.ByteReader)
Fixes #46967 Change-Id: I66e69c70b74e904623e8ca854562d255692b2143 Reviewed-on: https://go-review.googlesource.com/c/go/+/331649 Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Carlos Amedee <carlos@golang.org>
1 parent 0fa3265 commit 7d0e9e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image/gif/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ type decoder struct {
116116
// consumed when checking that the blockReader is exhausted.
117117
//
118118
// To avoid the allocation of a bufio.Reader for the lzw Reader, blockReader
119-
// implements io.ReadByte and buffers blocks into the decoder's "tmp" buffer.
119+
// implements io.ByteReader and buffers blocks into the decoder's "tmp" buffer.
120120
type blockReader struct {
121121
d *decoder
122122
i, j uint8 // d.tmp[i:j] contains the buffered bytes

0 commit comments

Comments
 (0)