mirror of
https://github.com/golang/go
synced 2024-11-23 15:00:03 -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:
parent
b71ea0b7dd
commit
578b961727
@ -42,7 +42,7 @@ const (
|
|||||||
itemChar // printable ASCII character; grab bag for comma etc.
|
itemChar // printable ASCII character; grab bag for comma etc.
|
||||||
itemCharConstant // character constant
|
itemCharConstant // character constant
|
||||||
itemComplex // complex constant (1+2i); imaginary is just a number
|
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
|
itemDeclare // colon-equals (':=') introducing a declaration
|
||||||
itemEOF
|
itemEOF
|
||||||
itemField // alphanumeric identifier starting with '.'
|
itemField // alphanumeric identifier starting with '.'
|
||||||
|
Loading…
Reference in New Issue
Block a user