mirror of
https://github.com/golang/go
synced 2024-11-20 02:04:39 -07: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:
parent
84ef97b59c
commit
3180137b86
@ -101,7 +101,7 @@ func (t *Tree) expect(expected itemType, context string) item {
|
|||||||
return token
|
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 {
|
func (t *Tree) expectOneOf(expected1, expected2 itemType, context string) item {
|
||||||
token := t.next()
|
token := t.next()
|
||||||
if token.typ != expected1 && token.typ != expected2 {
|
if token.typ != expected1 && token.typ != expected2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user