From: Shenghou Ma Date: Sun, 15 Apr 2012 13:50:21 +0000 (+0800) Subject: text/template/parse: fix doc comment X-Git-Tag: go1.1rc2~3381 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3180137b86fa0fd529bbaeb9bcd873331e0fb183;p=gostls13.git text/template/parse: fix doc comment Fixes #3529. R=golang-dev, r CC=golang-dev https://golang.org/cl/6037046 --- diff --git a/src/pkg/text/template/parse/parse.go b/src/pkg/text/template/parse/parse.go index fd8cf433fa..cbb1686a7f 100644 --- a/src/pkg/text/template/parse/parse.go +++ b/src/pkg/text/template/parse/parse.go @@ -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 {