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