From: Andrew Braunstein Date: Thu, 28 Jun 2018 18:49:30 +0000 (+0000) Subject: text/template/parse: fix a comment around the assign operator X-Git-Tag: go1.11beta2~261 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=578b961727e65787160af389272517098b37b4ef;p=gostls13.git 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 --- 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 '.'