| ... | @@ -82,6 +82,8 @@ fn peekIsAlign(comptime fmt: []const u8) bool { | ... | @@ -82,6 +82,8 @@ fn peekIsAlign(comptime fmt: []const u8) bool { |
| 82 | /// This allows user types to be formatted in a logical manner instead of dumping all fields of the type. | 82 | /// This allows user types to be formatted in a logical manner instead of dumping all fields of the type. |
| 83 | /// | 83 | /// |
| 84 | /// A user type may be a `struct`, `vector`, `union` or `enum` type. | 84 | /// A user type may be a `struct`, `vector`, `union` or `enum` type. |
| | 85 | /// |
| | 86 | /// To print literal curly braces, escape them by writing them twice, e.g. `{{` or `}}`. |
| 85 | pub fn format( | 87 | pub fn format( |
| 86 | writer: anytype, | 88 | writer: anytype, |
| 87 | comptime fmt: []const u8, | 89 | comptime fmt: []const u8, |