mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
update test API usage
This commit is contained in:
parent
b45984ec80
commit
7788fd6233
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue