diff options
| author | A cursed quail <quail@cursedquail.com> | 2025-07-26 10:32:17 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-26 21:53:23 -0700 |
| commit | e12dc4947c411d25c4c56d887e62d0e2b9addcb8 (patch) | |
| tree | e73d52a1bac71cbaa710951f6c04caa3dde4e457 /lib/std/testing.zig | |
| parent | 04614d6ea17fff69ead42223c35a257da25462de (diff) | |
| download | zig-e12dc4947c411d25c4c56d887e62d0e2b9addcb8.tar.gz zig-e12dc4947c411d25c4c56d887e62d0e2b9addcb8.zip | |
std.zig: fmtId returns a FormatId
Changes fmtId to return the FormatId type directly, and renames the
FormatId.render function to FormatId.format, so it can be used in a
format expression directly.
Why? Since `render` is private, you can't create functions that wrap
`fmtId` or `fmtIdFlags`, since you can't name the return type of those
functions outside of std itself.
The current setup _might_ be intentional? In which case I can live with
it, but I figured I'd make a small contrib to upstream zig :)
Diffstat (limited to 'lib/std/testing.zig')
0 files changed, 0 insertions, 0 deletions
