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

bufio: ReadLine doc comment references function by wrong name #13936

Closed
jangler opened this issue Jan 13, 2016 · 1 comment
Closed

bufio: ReadLine doc comment references function by wrong name #13936

jangler opened this issue Jan 13, 2016 · 1 comment

Comments

@jangler
Copy link

jangler commented Jan 13, 2016

https://github.com/golang/go/blob/master/src/bufio/bufio.go#L340-L341

The comment references "ReadBytes('\n')", when the relevant function is actually called "ReadSlice".

@jangler
Copy link
Author

jangler commented Jan 13, 2016

Nevermind. I see that "ReadBytes" is also a similar function, and is probably the better one to use in this case. Oops.

@jangler jangler closed this as completed Jan 13, 2016
@golang golang locked and limited conversation to collaborators Jan 13, 2017
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

2 participants