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