Skip to content

Commit 6298cfe

Browse files
WangLeonardgriesemer
authored andcommitted
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 <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 49402be commit 6298cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ func (r *importReader) exprsOrNil() (a, b ir.Node) {
15401540
func builtinCall(pos src.XPos, op ir.Op) *ir.CallExpr {
15411541
if go117ExportTypes {
15421542
// These should all be encoded as direct ops, not OCALL.
1543-
base.Fatalf("builtinCall should not be invoked when types are included in inport/export")
1543+
base.Fatalf("builtinCall should not be invoked when types are included in import/export")
15441544
}
15451545
return ir.NewCallExpr(pos, ir.OCALL, ir.NewIdent(base.Pos, types.BuiltinPkg.Lookup(ir.OpNames[op])), nil)
15461546
}

0 commit comments

Comments
 (0)