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
bufio: squelch error from Peek len(b) = n #3022
Labels
Milestone
Comments
At least as documented, Peek should not be returning that error. It's not directly analogous to Read, in that Peek always tries to get the number of bytes requested (it can't be short without an error). I'm inclined to fix the code to match the comment. Labels changed: added priority-go1, removed priority-triage. Owner changed to builder@golang.org. Status changed to Accepted. |
This issue was closed by revision 88f8af1. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: