update test API usage

This commit is contained in:
Andrew Kelley 2025-12-23 12:31:11 -08:00
parent b45984ec80
commit 7788fd6233

View file

@ -5,7 +5,7 @@ pub const std_options: std.Options = .{
pub fn main() !void {
var st_buf: [8]usize = undefined;
var buf: [1024]u8 = undefined;
var stdout = std.Io.File.stdout().writer(&buf);
var stdout = std.Io.File.stdout().writer(std.Options.debug_io, &buf);
const captured_st = try foo(&stdout.interface, &st_buf);
try std.debug.writeStackTrace(&captured_st, &stdout.interface, .no_color);