aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/text/template/parse/lex.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/text/template/parse/lex.go')
-rw-r--r--src/pkg/text/template/parse/lex.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/text/template/parse/lex.go b/src/pkg/text/template/parse/lex.go
index 97c19a160b..54e75ee0ca 100644
--- a/src/pkg/text/template/parse/lex.go
+++ b/src/pkg/text/template/parse/lex.go
@@ -187,7 +187,7 @@ func (l *lexer) lineNumber() int {
}
// error returns an error token and terminates the scan by passing
-// back a nil pointer that will be the next state, terminating l.run.
+// back a nil pointer that will be the next state, terminating l.nextItem.
func (l *lexer) errorf(format string, args ...interface{}) stateFn {
l.items <- item{itemError, fmt.Sprintf(format, args...)}
return nil