mirror of
https://github.com/janet-lang/janet
synced 2025-10-30 15:13:03 +00:00
Address #294
Correct invalid format string, which masked a panic with another, less useful panic.
This commit is contained in:
@@ -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) {
|
||||
if (argc != arity) {
|
||||
peg_panicf(b, "expected %d argument%s, got %d%",
|
||||
peg_panicf(b, "expected %d argument%s, got %d",
|
||||
arity,
|
||||
arity == 1 ? "" : "s",
|
||||
argc);
|
||||
|
||||
Reference in New Issue
Block a user