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/template/parse: docs errata #3529

Closed
gopherbot opened this issue Apr 14, 2012 · 3 comments
Closed

text/template/parse: docs errata #3529

gopherbot opened this issue Apr 14, 2012 · 3 comments

Comments

@gopherbot
Copy link

by php.ka2:

I was reading text/template/parse/parse.go to understand how the parser works and I
found a minor errata on a function comment.

What steps will reproduce the problem?
1. http://golang.org/src/pkg/text/template/parse/parse.go#L103
2. http://weekly.golang.org/src/pkg/text/template/parse/parse.go#L103
3. http://tip.golang.org/src/pkg/text/template/parse/parse.go#L103

What is the expected output?
// expectOneOf consumes the next token and guarantees it has one of the required types.

What do you see instead?
// expectEither consumes the next token and guarantees it has one of the required types.

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
windows

Which version are you using?  (run 'go version')
go version go1
@minux
Copy link
Member

minux commented Apr 15, 2012

Comment 1:

Labels changed: added priority-soon, documentation, removed priority-triage.

Owner changed to @minux.

Status changed to Accepted.

@minux
Copy link
Member

minux commented Apr 15, 2012

Comment 2:

I think the function should be renamed to match the documentation.

@minux
Copy link
Member

minux commented Apr 15, 2012

Comment 3:

This issue was closed by revision 3180137.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 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

2 participants