diff options
| author | Ian Johnson <ian@ianjohnson.dev> | 2023-10-27 20:29:17 -0400 |
|---|---|---|
| committer | Ian Johnson <ian@ianjohnson.dev> | 2024-01-29 19:02:18 -0500 |
| commit | cc25756b3f33578774b557bdf09dcc9e918c1e5a (patch) | |
| tree | e713795cfeaa0674321003bf2b6d7d847cf6a89c /lib/std/debug.zig | |
| parent | e392c1a0b33e69156c36234e6584be306caf16ef (diff) | |
| download | zig-cc25756b3f33578774b557bdf09dcc9e918c1e5a.tar.gz zig-cc25756b3f33578774b557bdf09dcc9e918c1e5a.zip | |
Eliminate generic duplication in `allocPrint`
Since `bufPrint` and `count` both control the writers used internally,
they can leverage type-erased writers while maintaining correct error
handling. This reduces generic instantiations when using `allocPrint`,
which calls both `count` and `bufPrint` internally.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
