Remove usages of deprecatedWriter

This commit is contained in:
andrewkraevskii
2025-09-12 21:25:48 +03:00
committed by Andrew Kelley
parent 37ecaae639
commit de489031d8
6 changed files with 59 additions and 12 deletions
+2 -1
View File
@@ -460,7 +460,8 @@ fn mode(comptime x: comptime_int) comptime_int {
}
pub fn main() !void {
var stdout_buffer: [4096]u8 = undefined;
// Size of buffer is about size of printed message.
var stdout_buffer: [0x100]u8 = undefined;
var stdout_writer = std.fs.File.stdout().writer(&stdout_buffer);
const stdout = &stdout_writer.interface;