You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#18556 disallowed calls to (*bufio.Reader).UnreadByte after any Peek, but did not update the documentation for UnreadByte, which currently reads:
UnreadByte unreads the last byte. Only the most recently read byte can be unread.
It is not obvious that Peek changes the meaning of (or invalidates) “the most recently read byte”, so the documentation for UnreadByte should be clarified.
(Or, better still, we should fix UnreadByte so that it works even after a Peek.)
The text was updated successfully, but these errors were encountered:
#18556 disallowed calls to
(*bufio.Reader).UnreadByte
after anyPeek
, but did not update the documentation forUnreadByte
, which currently reads:It is not obvious that
Peek
changes the meaning of (or invalidates) “the most recently read byte”, so the documentation forUnreadByte
should be clarified.(Or, better still, we should fix
UnreadByte
so that it works even after aPeek
.)The text was updated successfully, but these errors were encountered: