authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-10 16:45:22 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-10 16:45:22 -07:00
log7e531260786ec3be47ff8f30813814422c1ef0db
tree29ddc1233e4700508d562e99fba1574c00ea92ab
parent348fa46c43831dc963c123814bcad3c07874413a
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

expose nio.bufPrint()


1 files changed, 1 insertions(+), 1 deletions(-)

fmt.zig+1-1
......@@ -816,7 +816,7 @@ fn count(comptime fmt: []const u8, args: anytype) u64 {
816816
817817/// Print a Formatter string into `buf`. Actually just a thin wrapper around `format` and `fixedBufferStream`.
818818/// Returns a slice of the bytes printed to.
819fn bufPrint(buf: []u8, comptime fmt: []const u8, args: anytype) ![]u8 {
819pub fn bufPrint(buf: []u8, comptime fmt: []const u8, args: anytype) ![]u8 {
820820 var fbs: nio.FixedBufferStream([]u8) = .init(buf);
821821 format(&fbs, fmt, args) catch |err| switch (err) {
822822 error.NoSpaceLeft => return error.NoSpaceLeft,