| author | |
| committer | |
| log | 7cfe854359bcacb038654903fbe8a17c4144c3d5 |
| tree | 73c2787224185f08f686bd286b2ed36d64eafc7b |
| parent | 6fa143355f256e354a2df67a42e3e9208d1a71e9 |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 1 insertions(+), 7 deletions(-)
lib/std/buffer.zig+1-7| ... | ... | @@ -149,13 +149,7 @@ pub const Buffer = struct { |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | pub fn print(self: *Buffer, comptime fmt: []const u8, args: var) !void { |
| 152 | try std.fmt.format( | |
| 153 | self, | |
| 154 | @typeInfo(@TypeOf(Buffer.append)).Fn.return_type.?.ErrorSet, | |
| 155 | Buffer.append, | |
| 156 | fmt, | |
| 157 | args, | |
| 158 | ); | |
| 152 | return std.fmt.format(self, error{OutOfMemory}, Buffer.append, fmt, args); | |
| 159 | 153 | } |
| 160 | 154 | }; |
| 161 | 155 |