Commit 3180137b authored by Shenghou Ma's avatar Shenghou Ma

text/template/parse: fix doc comment

    Fixes #3529.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6037046
parent 84ef97b5
...@@ -101,7 +101,7 @@ func (t *Tree) expect(expected itemType, context string) item { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment