]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: Update comment to mention imaginary literals
authorEvan Shaw <chickencha@gmail.com>
Fri, 16 Apr 2010 01:06:22 +0000 (18:06 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 16 Apr 2010 01:06:22 +0000 (18:06 -0700)
R=gri
CC=golang-dev
https://golang.org/cl/846050

src/pkg/go/ast/ast.go

index 34d20ed05919e2cb1f0b7ff3d07b1f0028358909..2fc8b215fd5f5ef489348bb8141a85532830fb7d 100644 (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`
        }