mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
clean up std.Buffer.print
This commit is contained in:
parent
6fa143355f
commit
7cfe854359
@ -149,13 +149,7 @@ pub const Buffer = struct {
|
||||
}
|
||||
|
||||
pub fn print(self: *Buffer, comptime fmt: []const u8, args: var) !void {
|
||||
try std.fmt.format(
|
||||
self,
|
||||
@typeInfo(@TypeOf(Buffer.append)).Fn.return_type.?.ErrorSet,
|
||||
Buffer.append,
|
||||
fmt,
|
||||
args,
|
||||
);
|
||||
return std.fmt.format(self, error{OutOfMemory}, Buffer.append, fmt, args);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user