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
What does 'go version' print?
go version devel +2b85dda01af0 Wed Mar 19 10:14:04 2014 -0700 linux/amd64
What steps reproduce the problem?
http://play.golang.org/p/S97IegN_jI
UnreadByte can be called any number of times without error until it reaches beginning of
the internal buffer, despite it's documentation says "only the most recently read
byte can be unread."
I'm not sure if it's an undefined behavior or a bug, so I'm just filing it.
The text was updated successfully, but these errors were encountered:
The documentation should say that only unreading of the most recently read byte is
guaranteed. That said, exactly when it's possible to unread more bytes depends on a
various factors and is not easily predictable in general. Changed code to follow the
documentation and added test:
https://golang.org/cl/86180043/
The text was updated successfully, but these errors were encountered: