Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bytes: UnreadByte does not unread last byte read via ReadBytes/ReadString #7844

Closed
gopherbot opened this issue Apr 23, 2014 · 3 comments
Closed
Milestone

Comments

@gopherbot
Copy link

by wglozer:

go version devel +f613443bb13a Tue Apr 22 21:12:15 2014 -0700 darwin/amd64
go version devel +f8b50ad4cac4 Mon Apr 21 17:00:27 2014 -0700 + linux/amd64

bufio.Reader.UnreadByte fails to unread the last byte read via bufio.Reader.ReadString
or ReadBytes

http://play.golang.org/p/jFyYyuYyR0
http://play.golang.org/p/1haNnTi77w

What happened?

  UnreadByte returns error

What should have happened instead?

  UnreadByte successfully unreads the last read byte
@ianlancetaylor
Copy link
Contributor

Comment 1:

Labels changed: added repo-main, release-go1.3.

Owner changed to @griesemer.

Status changed to Accepted.

@gopherbot
Copy link
Author

Comment 2:

CL https://golang.org/cl/90620045 mentions this issue.

@griesemer
Copy link
Contributor

Comment 3:

This issue was closed by revision 9144d87.

Status changed to Fixed.

@rsc rsc added this to the Go1.3 milestone Apr 14, 2015
@rsc rsc removed the release-go1.3 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants