aboutsummaryrefslogtreecommitdiff
path: root/std/ref.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-01-01 15:37:07 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-01-01 15:37:07 +0100
commit8e3ed7630c7383869b6e16b494d4288c4e094dd3 (patch)
tree2586f8b1e7849b17e9151ea5cb248632b8d75879 /std/ref.c
parent8a45fcfcacd3752b19ff59542f74066a8d6d14ce (diff)
downloaduwu-lang-8e3ed7630c7383869b6e16b494d4288c4e094dd3.tar.xz
Argument counting starts at 1 now
Diffstat (limited to 'std/ref.c')
-rw-r--r--std/ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/ref.c b/std/ref.c
index f92e4b0..ee18bfc 100644
--- 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);
}