1
0
mirror of https://github.com/golang/go synced 2024-09-25 03:10:12 -06:00

go/ast: Update comment to mention imaginary literals

R=gri
CC=golang-dev
https://golang.org/cl/846050
This commit is contained in:
Evan Shaw 2010-04-15 18:06:22 -07:00 committed by Robert Griesemer
parent 39a2e82ee6
commit ff922fe15a

View File

@ -155,7 +155,7 @@ type (
// A BasicLit node represents a literal of basic type.
BasicLit struct {
token.Position // literal position
Kind token.Token // token.INT, token.FLOAT, token.CHAR, or token.STRING
Kind token.Token // token.INT, token.FLOAT, token.IMAG, token.CHAR, or token.STRING
Value []byte // literal string; e.g. 42, 0x7f, 3.14, 1e-9, 'a', '\x7f', "foo" or `\m\n\o`
}