diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2023-10-04 15:22:49 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-10-05 15:20:28 +0000 |
| commit | 008dabcd19b5c3f00083c6d4e6c306682bb1bcd0 (patch) | |
| tree | 195eecd26805aa01cbe2f64b20514288f50acfcb /src/cmd/compile/internal/ir/node.go | |
| parent | dcd018b5c54cd23b36ef732473f0d99fbb57f6fc (diff) | |
| download | go-008dabcd19b5c3f00083c6d4e6c306682bb1bcd0.tar.xz | |
cmd/compile/internal/ir: tweak a couple names
CallExpr.X -> CallExpr.Fun
This consistent with go/ast and cmd/compile/internal/syntax.
OPRINTN -> OPRINTLN
This op represents the "println" builtin; might as well spell it the
same way.
Change-Id: Iead1b007776658c717879cf0997b3c48028428f4
Reviewed-on: https://go-review.googlesource.com/c/go/+/532795
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ir/node.go')
| -rw-r--r-- | src/cmd/compile/internal/ir/node.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go index 954b7bc782..a6e8f0e3e5 100644 --- a/src/cmd/compile/internal/ir/node.go +++ b/src/cmd/compile/internal/ir/node.go @@ -223,7 +223,7 @@ const ( OOROR // X || Y OPANIC // panic(X) OPRINT // print(List) - OPRINTN // println(List) + OPRINTLN // println(List) OPAREN // (X) OSEND // Chan <- Value OSLICE // X[Low : High] (X is untypechecked or slice) |
