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

text/scanner: Example is incorrect #20346

Closed
griesemer opened this issue May 12, 2017 · 1 comment
Closed

text/scanner: Example is incorrect #20346

griesemer opened this issue May 12, 2017 · 1 comment
Milestone

Comments

@griesemer
Copy link
Contributor

The example code uses Scanner.Pos() instead of Scanner.Position to report token positions, which is misleading people.

@griesemer griesemer added this to the Go1.9 milestone May 12, 2017
@griesemer griesemer self-assigned this May 12, 2017
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators May 12, 2018
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