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

io: ByteReader and ByteWriter documentation #11308

Closed
dsnet opened this issue Jun 20, 2015 · 1 comment
Closed

io: ByteReader and ByteWriter documentation #11308

dsnet opened this issue Jun 20, 2015 · 1 comment

Comments

@dsnet
Copy link
Member

dsnet commented Jun 20, 2015

For ByteReader, is it possible that a byte is available and an error is also set? I would assume this should not happen, otherwise the user would never be able to tell that a byte was returned in the event of an error.

Also, for ByteWriter, the documentation doesn't really say anything at all about it. I would assume that an error is set if and only if the byte was not written.

Can documentation be made more clear on the error conditions?

@gopherbot
Copy link

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

@adg adg closed this as completed in b986e47 Oct 6, 2015
@golang golang locked and limited conversation to collaborators Oct 9, 2016
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

3 participants