mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +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) { | 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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose