diff options
| author | Shenghou Ma <minux.ma@gmail.com> | 2012-04-15 21:50:21 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2012-04-15 21:50:21 +0800 |
| commit | 3180137b86fa0fd529bbaeb9bcd873331e0fb183 (patch) | |
| tree | eef9197ed1153b9b22b7638f13e8c15a7241fbf9 /src/pkg/text/template/parse/parse.go | |
| parent | 84ef97b59c89b7d9fdc04a1a8a438cd3257bf521 (diff) | |
| download | go-3180137b86fa0fd529bbaeb9bcd873331e0fb183.tar.xz | |
text/template/parse: fix doc comment
Fixes #3529.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6037046
Diffstat (limited to 'src/pkg/text/template/parse/parse.go')
| -rw-r--r-- | src/pkg/text/template/parse/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
