From 3180137b86fa0fd529bbaeb9bcd873331e0fb183 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Sun, 15 Apr 2012 21:50:21 +0800 Subject: [PATCH] text/template/parse: fix doc comment Fixes #3529. R=golang-dev, r CC=golang-dev https://golang.org/cl/6037046 --- src/pkg/text/template/parse/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {