Skip to content

Commit ec67622

Browse files
ianlancetaylorgopherbot
authored andcommitted
cmd/compile, go/types: add missing space in error message
Otherwise "print(nil)" gets an error like use of untyped nil in argument to built-inprint Change-Id: Iaa841df106f90787031dce75a49af69860a9dbc9 Reviewed-on: https://go-review.googlesource.com/c/go/+/611918 Commit-Queue: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]>
1 parent 9deda35 commit ec67622

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/compile/internal/types2/builtins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ func (check *Checker) builtin(x *operand, call *syntax.CallExpr, id builtinId) (
641641
if nargs > 0 {
642642
params = make([]Type, nargs)
643643
for i, a := range args {
644-
check.assignment(a, nil, "argument to built-in"+predeclaredFuncs[id].name)
644+
check.assignment(a, nil, "argument to built-in "+predeclaredFuncs[id].name)
645645
if a.mode == invalid {
646646
return
647647
}

src/go/types/builtins.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)