]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: fix ONAME documentation
authorMatthew Dempsky <mdempsky@google.com>
Sat, 27 Oct 2018 00:13:04 +0000 (17:13 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 27 Oct 2018 00:22:57 +0000 (00:22 +0000)
Named constants are represented as OLITERAL with n.Sym != nil.

Change-Id: If6bc8c507ef8c3e4e47f586d86fd1d0f20bf8974
Reviewed-on: https://go-review.googlesource.com/c/145198
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/syntax.go

index 9ea727fa64be50a4b5f88962d4c420a7c4458674..4809199125a5f493b2e2a61478a94f2168137f1d 100644 (file)
@@ -574,7 +574,7 @@ const (
        OXXX Op = iota
 
        // names
-       ONAME    // var, const or func name
+       ONAME    // var or func name
        ONONAME  // unnamed arg or return value: f(int, string) (int, error) { etc }
        OTYPE    // type name
        OPACK    // import