| author | |
| committer | |
| log | 7277670843d259d19093c8900b1f8445e41202ae |
| tree | 8073b6a5e01397c22b020357bdb093b1dd6c35d1 |
| parent | f81f36e2ff348b83ace8ccb4ffd949f3d7c266c9 |
1 files changed, 4 insertions(+), 0 deletions(-)
lib/std/fmt.zig+4| ... | ... | @@ -167,6 +167,10 @@ pub fn format( |
| 167 | 167 | '}' => { |
| 168 | 168 | const arg_to_print = comptime nextArg(&used_pos_args, maybe_pos_arg, &next_arg); |
| 169 | 169 | |
| 170 | if (arg_to_print >= args.len) { | |
| 171 | @compileError("Too few arguments"); | |
| 172 | } | |
| 173 | ||
| 170 | 174 | try formatType( |
| 171 | 175 | args[arg_to_print], |
| 172 | 176 | fmt[0..0], |