From: uji Date: Tue, 29 Jun 2021 15:06:23 +0000 (+0900) Subject: image/gif: fix typo in the comment (io.ReadByte -> io.ByteReader) X-Git-Tag: go1.17rc1~27 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7d0e9e6e74b45cf658257363151a79baf030033f;p=gostls13.git 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 Trust: Carlos Amedee --- diff --git a/src/image/gif/reader.go b/src/image/gif/reader.go index e580ab049e..9e8268c86f 100644 --- a/src/image/gif/reader.go +++ b/src/image/gif/reader.go @@ -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