]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix typo in fatal message of builtinCall
authorLeonard Wang <wangdeyu0907@gmail.com>
Sun, 11 Jul 2021 03:46:26 +0000 (11:46 +0800)
committerRobert Griesemer <gri@golang.org>
Mon, 19 Jul 2021 17:27:58 +0000 (17:27 +0000)
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>

src/cmd/compile/internal/typecheck/iimport.go

index a5ddbb5a74c97e2542d1e52fbf8735a422f29526..37f5a7bba0ac9a351c2373c969e8dce025b57185 100644 (file)
@@ -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)
 }