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:
parent
39a2e82ee6
commit
ff922fe15a
@ -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`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user