summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvan Shaw <chickencha@gmail.com>2010-04-15 18:06:22 -0700
committerEvan Shaw <chickencha@gmail.com>2010-04-15 18:06:22 -0700
commit06e5c101a49e4ccd8798126bae254341102485e4 (patch)
tree00106ed00b4bb227f92ad79b5a8c78c710848ae7 /src
parent1f7793123a089a8160f948568eedf603c8789829 (diff)
downloadgolang-06e5c101a49e4ccd8798126bae254341102485e4.tar.gz
go/ast: Update comment to mention imaginary literals
R=gri CC=golang-dev http://codereview.appspot.com/846050 Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/pkg/go/ast/ast.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/ast/ast.go b/src/pkg/go/ast/ast.go
index 34d20ed05..2fc8b215f 100644
--- a/src/pkg/go/ast/ast.go
+++ b/src/pkg/go/ast/ast.go
@@ -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`
}