mirror of
https://github.com/janet-lang/janet
synced 2025-01-13 00:50:26 +00:00
Address #294
Correct invalid format string, which masked a panic with another, less useful panic.
This commit is contained in:
parent
f06addfe06
commit
6bc67b70a6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user