@@ -770,9 +770,9 @@ def typecheck_call(state: State*, call: AstCall*, location: Location) -> Type*:
770770 snprintf(msg, sizeof(msg), "function '%s' not found", call.function.varname)
771771 match call.function.varname with strcmp:
772772 case "print":
773- strcat(msg, ", try ' printf' from \"stdlib/io.jou\"")
773+ strcat(msg, ", try printf() from \"stdlib/io.jou\"")
774774 case "input":
775- strcat(msg, ", try ' fgets' from \"stdlib/io.jou\"")
775+ strcat(msg, ", try fgets() from \"stdlib/io.jou\"")
776776 fail(call.function.location, msg)
777777
778778 funcptr_type = typecheck_expression_not_void(state, call.function, NULL)
@@ -1242,11 +1242,11 @@ def typecheck_expression(state: State*, expr: AstExpression*, type_hint: Type*)
12421242 snprintf(msg, sizeof(msg), "no variable named '%s'", expr.varname)
12431243 match expr.varname with strcmp:
12441244 case "stdin":
1245- strcat(msg, ", try ' get_stdin()' from \"stdlib/io.jou\"")
1245+ strcat(msg, ", try get_stdin() from \"stdlib/io.jou\"")
12461246 case "stdout":
1247- strcat(msg, ", try ' get_stdout()' from \"stdlib/io.jou\"")
1247+ strcat(msg, ", try get_stdout() from \"stdlib/io.jou\"")
12481248 case "stderr":
1249- strcat(msg, ", try ' get_stderr()' from \"stdlib/io.jou\"")
1249+ strcat(msg, ", try get_stderr() from \"stdlib/io.jou\"")
12501250 case "Null" | "null":
12511251 strcat(msg, ", try NULL")
12521252 case "TRUE" | "true":
0 commit comments