test: std.fs.File -> std.Io.File

This commit is contained in:
Andrew Kelley
2025-12-08 18:07:55 -08:00
parent 1dcfc8787e
commit a91c6dc71d
43 changed files with 106 additions and 102 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ pub fn main() !void {
try foo(&val);
}
fn foo(val: *const S) !void {
var stdout_writer = std.fs.File.stdout().writerStreaming(&.{});
var stdout_writer = std.Io.File.stdout().writerStreaming(&.{});
try stdout_writer.interface.print(
"{d} {d}\n",
.{ val.x, val.y },
@@ -28,7 +28,7 @@ pub fn main() !void {
try foo(&val);
}
fn foo(val: *const S) !void {
var stdout_writer = std.fs.File.stdout().writerStreaming(&.{});
var stdout_writer = std.Io.File.stdout().writerStreaming(&.{});
try stdout_writer.interface.print(
"{d} {d}\n",
.{ val.x, val.y },
@@ -45,7 +45,7 @@ pub fn main() !void {
try foo(&val);
}
fn foo(val: *const S) !void {
var stdout_writer = std.fs.File.stdout().writerStreaming(&.{});
var stdout_writer = std.Io.File.stdout().writerStreaming(&.{});
try stdout_writer.interface.print(
"{d} {d}\n",
.{ val.x, val.y },