| ... | ... | @@ -544,6 +544,13 @@ pub fn formatType( |
| 544 | 544 | return formatText(value, actual_fmt, options, writer); |
| 545 | 545 | } |
| 546 | 546 | } |
| 547 | if (comptime std.meta.trait.isZigString(info.child)) { |
| 548 | for (value) |item, i| { |
| 549 | if (i != 0) try formatText(", ", actual_fmt, options, writer); |
| 550 | try formatText(item, actual_fmt, options, writer); |
| 551 | } |
| 552 | return; |
| 553 | } |
| 547 | 554 | @compileError("Unknown format string: '" ++ actual_fmt ++ "' for type '" ++ @typeName(T) ++ "'"); |
| 548 | 555 | }, |
| 549 | 556 | .Enum, .Union, .Struct => { |