1
0
mirror of https://github.com/golang/go synced 2024-11-23 12:30:11 -07:00

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: aec0bf594c
GitHub-Pull-Request: golang/go#26112
Reviewed-on: https://go-review.googlesource.com/121416
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Andrew Braunstein 2018-06-28 18:49:30 +00:00 committed by Brad Fitzpatrick
parent b71ea0b7dd
commit 578b961727

View File

@ -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 '.'