1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-17 22:24:49 +00:00
Correct invalid format string, which masked a panic
with another, less useful panic.
This commit is contained in:
Calvin Rose 2020-03-03 22:26:26 -06:00
parent f06addfe06
commit 6bc67b70a6

View File

@ -476,7 +476,7 @@ JANET_NO_RETURN static void peg_panic(Builder *b, const char *msg) {
static void peg_fixarity(Builder *b, int32_t argc, int32_t arity) { static void peg_fixarity(Builder *b, int32_t argc, int32_t arity) {
if (argc != arity) { if (argc != arity) {
peg_panicf(b, "expected %d argument%s, got %d%", peg_panicf(b, "expected %d argument%s, got %d",
arity, arity,
arity == 1 ? "" : "s", arity == 1 ? "" : "s",
argc); argc);