| author | |
| committer | |
| log | ae44e199a8caa8d26db04b81867acb81d54ba217 |
| tree | 930c2d7f62ee3de4628c7b5357d17369b89ace29 |
| parent | aa0736651346304199cebc8ea97bebbcde0491e3 |
| signature |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/fmt.zig+1-1| ... | ... | @@ -480,7 +480,7 @@ pub fn formatType( |
| 480 | 480 | ) @TypeOf(writer).Error!void { |
| 481 | 481 | const T = @TypeOf(value); |
| 482 | 482 | const actual_fmt = comptime if (std.mem.eql(u8, fmt, ANY)) |
| 483 | defaultSpec(@TypeOf(value)) | |
| 483 | defaultSpec(T) | |
| 484 | 484 | else if (fmt.len != 0 and (fmt[0] == '?' or fmt[0] == '!')) switch (@typeInfo(T)) { |
| 485 | 485 | .Optional, .ErrorUnion => fmt, |
| 486 | 486 | else => stripOptionalOrErrorUnionSpec(fmt), |