]> Cypherpunks.ru repositories - gostls13.git/commitdiff
image/gif: fix typo in the comment (io.ReadByte -> io.ByteReader)
authoruji <ujiprog@gmail.com>
Tue, 29 Jun 2021 15:06:23 +0000 (00:06 +0900)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Jun 2021 17:58:50 +0000 (17:58 +0000)
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>

src/image/gif/reader.go

index e580ab049e6edb87dd04dc581576f58138fc5119..9e8268c86f3c018af93723a748a258b8c13870da 100644 (file)
@@ -116,7 +116,7 @@ type decoder struct {
 // consumed when checking that the blockReader is exhausted.
 //
 // To avoid the allocation of a bufio.Reader for the lzw Reader, blockReader
-// implements io.ReadByte and buffers blocks into the decoder's "tmp" buffer.
+// implements io.ByteReader and buffers blocks into the decoder's "tmp" buffer.
 type blockReader struct {
        d    *decoder
        i, j uint8 // d.tmp[i:j] contains the buffered bytes