]> git.lizzy.rs Git - uwu-lang.git/blobdiff - std/ref.c
Argument counting starts at 1 now
[uwu-lang.git] / std / ref.c
index f92e4b0c3933f385ca344ff97e71e9a6728a3cba..ee18bfcabbc67474061504d7dbc1d9cdb1d642c6 100644 (file)
--- a/std/ref.c
+++ b/std/ref.c
@@ -9,7 +9,7 @@ UwUVMValue uwu_call(UwUVMArgs *args)
        UwUVMValue value = uwuvm_get_arg(args, 0);
 
        if (value.type != &uwuref_type)
-               error(":ref:call requires a function reference as $0\n");
+               error(":ref:call requires a function reference as $1\n");
 
        return uwuvm_call_function(value.data, args->num - 1, &args->unevaluated[1], args->super);
 }