]> Cypherpunks repositories - gostls13.git/commitdiff
text/template/parse: fix doc comment
authorShenghou Ma <minux.ma@gmail.com>
Sun, 15 Apr 2012 13:50:21 +0000 (21:50 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Sun, 15 Apr 2012 13:50:21 +0000 (21:50 +0800)
    Fixes #3529.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6037046

src/pkg/text/template/parse/parse.go

index fd8cf433fa4f877baf2b12501777c88601f976d6..cbb1686a7f5b359dc8ddbe07a21745e4a5cf6c72 100644 (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 {