From d0bf48b68d5ba2bdd93a54de78fec8cdd2090a9d Mon Sep 17 00:00:00 2001 From: Liz Date: Fri, 8 Nov 2024 01:13:29 +0100 Subject: [PATCH] Update src/vm/datatypes/strings.c Co-authored-by: Jason_000 --- src/vm/datatypes/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/datatypes/strings.c b/src/vm/datatypes/strings.c index b53f4023..bed082c7 100644 --- a/src/vm/datatypes/strings.c +++ b/src/vm/datatypes/strings.c @@ -24,7 +24,7 @@ static Value lenString(DictuVM *vm, int argCount, Value *args) { static Value byteLenString(DictuVM *vm, int argCount, Value *args) { if (argCount != 0) { - runtimeError(vm, "len() takes no arguments (%d given)", argCount); + runtimeError(vm, "byteLen() takes no arguments (%d given)", argCount); return EMPTY_VAL; }