1
0
mirror of https://github.com/golang/go synced 2024-10-02 22:31:22 -06:00

text/template/parse: fix doc comment

Fixes #3529.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6037046
This commit is contained in:
Shenghou Ma 2012-04-15 21:50:21 +08:00
parent 84ef97b59c
commit 3180137b86

View File

@ -101,7 +101,7 @@ func (t *Tree) expect(expected itemType, context string) item {
return token
}
// expectEither consumes the next token and guarantees it has one of the required types.
// expectOneOf consumes the next token and guarantees it has one of the required types.
func (t *Tree) expectOneOf(expected1, expected2 itemType, context string) item {
token := t.next()
if token.typ != expected1 && token.typ != expected2 {