]> Cypherpunks.ru repositories - gostls13.git/commitdiff
bytes: correct tense in comment
authorIan Lance Taylor <iant@golang.org>
Mon, 15 Mar 2021 17:03:30 +0000 (10:03 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 15 Mar 2021 17:37:09 +0000 (17:37 +0000)
Undo incorrect change accidentally made in CL 299109.

Change-Id: Iba29827d0fbd3637c311cebc50c2f4ea437fc582
Reviewed-on: https://go-review.googlesource.com/c/go/+/301830
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/bytes/buffer.go

index 01764c694e501809da5833ceebfafb38b3f50c5c..549b077708f80e3742e79b0e93e29d3432d3c6c7 100644 (file)
@@ -387,7 +387,7 @@ var errUnreadByte = errors.New("bytes.Buffer: UnreadByte: previous operation was
 
 // UnreadByte unreads the last byte returned by the most recent successful
 // read operation that read at least one byte. If a write has happened since
-// the last read, if the last read returned an error, or if the read reads zero
+// the last read, if the last read returned an error, or if the read read zero
 // bytes, UnreadByte returns an error.
 func (b *Buffer) UnreadByte() error {
        if b.lastRead == opInvalid {