From 578b961727e65787160af389272517098b37b4ef Mon Sep 17 00:00:00 2001 From: Andrew Braunstein Date: Thu, 28 Jun 2018 18:49:30 +0000 Subject: [PATCH] text/template/parse: fix a comment around the assign operator Fix a comment that misrepresented the Assign operator (=). Rename: colon-equals -> equals. Change-Id: I405b8acfb0bcd1b176a91a95f9bfb61a4e85815f GitHub-Last-Rev: aec0bf594c63d7b015f88f97f9953ade976817a4 GitHub-Pull-Request: golang/go#26112 Reviewed-on: https://go-review.googlesource.com/121416 Reviewed-by: Brad Fitzpatrick --- src/text/template/parse/lex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text/template/parse/lex.go b/src/text/template/parse/lex.go index fae8841fb1..fc259f351e 100644 --- a/src/text/template/parse/lex.go +++ b/src/text/template/parse/lex.go @@ -42,7 +42,7 @@ const ( itemChar // printable ASCII character; grab bag for comma etc. itemCharConstant // character constant itemComplex // complex constant (1+2i); imaginary is just a number - itemAssign // colon-equals ('=') introducing an assignment + itemAssign // equals ('=') introducing an assignment itemDeclare // colon-equals (':=') introducing a declaration itemEOF itemField // alphanumeric identifier starting with '.' -- 2.50.0