diff options
author | Leonard Wang <wangdeyu0907@gmail.com> | 2021-07-11 11:46:26 +0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2021-07-19 17:27:58 +0000 |
commit | 6298cfe6724e3ca24dedd3f62b2b358aafe17276 (patch) | |
tree | 9e59d1c47bee14a6bc3953407f9b06e59bbd4507 /src/cmd/compile/internal/typecheck | |
parent | 49402bee36fd3d5cee9f4b2d2e1e8560ead0203b (diff) | |
download | go-6298cfe6724e3ca24dedd3f62b2b358aafe17276.tar.gz go-6298cfe6724e3ca24dedd3f62b2b358aafe17276.zip |
cmd/compile: fix typo in fatal message of builtinCall
Change-Id: I523d5fd810b82154a204670d46fc250a0fc66791
Reviewed-on: https://go-review.googlesource.com/c/go/+/333849
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/typecheck')
-rw-r--r-- | src/cmd/compile/internal/typecheck/iimport.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/typecheck/iimport.go b/src/cmd/compile/internal/typecheck/iimport.go index a5ddbb5a74..37f5a7bba0 100644 --- a/src/cmd/compile/internal/typecheck/iimport.go +++ b/src/cmd/compile/internal/typecheck/iimport.go @@ -1540,7 +1540,7 @@ func (r *importReader) exprsOrNil() (a, b ir.Node) { func builtinCall(pos src.XPos, op ir.Op) *ir.CallExpr { if go117ExportTypes { // These should all be encoded as direct ops, not OCALL. - base.Fatalf("builtinCall should not be invoked when types are included in inport/export") + base.Fatalf("builtinCall should not be invoked when types are included in import/export") } return ir.NewCallExpr(pos, ir.OCALL, ir.NewIdent(base.Pos, types.BuiltinPkg.Lookup(ir.OpNames[op])), nil) } |