| ... | @@ -49,7 +49,7 @@ pub fn BufferedWriter(comptime buffer_size: usize, comptime WriterType: type) ty | ... | @@ -49,7 +49,7 @@ pub fn BufferedWriter(comptime buffer_size: usize, comptime WriterType: type) ty |
| 49 | | 49 | |
| 50 | pub fn anyWritable(self: *Self) nio.AnyWritable { | 50 | pub fn anyWritable(self: *Self) nio.AnyWritable { |
| 51 | const S = struct { | 51 | const S = struct { |
| 52 | fn write(s: *allowzero anyopaque, buffer: []u8) anyerror!usize { | 52 | fn write(s: *allowzero anyopaque, buffer: []const u8) anyerror!usize { |
| 53 | const bw: *Self = @ptrCast(@alignCast(s)); | 53 | const bw: *Self = @ptrCast(@alignCast(s)); |
| 54 | return bw.write(buffer); | 54 | return bw.write(buffer); |
| 55 | } | 55 | } |