From 63dd6d03f4d668a3c535fa065df29eb7390a31d5 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 6 Jan 2019 12:05:40 -0500 Subject: [PATCH] Fix english --- src/core/vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/vm.c b/src/core/vm.c index 17494b3f..02f39d3f 100644 --- a/src/core/vm.c +++ b/src/core/vm.c @@ -562,7 +562,7 @@ static JanetSignal run_vm(JanetFiber *fiber, Janet in) { if (janet_fiber_funcframe(fiber, func)) { int32_t n = fiber->stacktop - fiber->stackstart; janet_panicf("%v called with %d argument%s, expected %d", - callee, n, n == 1 ? "s" : "", func->def->arity); + callee, n, n == 1 ? "" : "s", func->def->arity); } stack = fiber->data + fiber->frame; pc = func->def->bytecode; @@ -593,7 +593,7 @@ static JanetSignal run_vm(JanetFiber *fiber, Janet in) { janet_stack_frame(fiber->data + fiber->frame)->pc = pc; int32_t n = fiber->stacktop - fiber->stackstart; janet_panicf("%v called with %d argument%s, expected %d", - callee, n, n == 1 ? "s" : "", func->def->arity); + callee, n, n == 1 ? "" : "s", func->def->arity); } stack = fiber->data + fiber->frame; pc = func->def->bytecode;