]> Cypherpunks repositories - gostls13.git/commitdiff
text/template/parse: fix a comment around the assign operator
authorAndrew Braunstein <awbraunstein@gmail.com>
Thu, 28 Jun 2018 18:49:30 +0000 (18:49 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Jun 2018 19:37:15 +0000 (19:37 +0000)
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 <bradfitz@golang.org>
src/text/template/parse/lex.go

index fae8841fb14804a222e01afd72d78efc182dcbed..fc259f351ed5f8acf87e3df6cf24ebf1ef31b540 100644 (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 '.'