Skip to content

Commit 03b5aa9

Browse files
committed
return string instead of empty
1 parent 998ec9b commit 03b5aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evaluator/builtins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var builtins = map[string]*object.Builtin{
4949
arr = append(arr, arg.Inspect())
5050
}
5151
str := strings.Join(arr, " ")
52-
print(str + "\n")
52+
return &object.String{Value: str}
5353
}
5454
return nil
5555
},

0 commit comments

Comments
 (0)