Update stdio.zig

This commit is contained in:
Jarred Sumner
2024-02-27 21:57:14 -08:00
parent 0b27f7429d
commit a0030cf158

View File

@@ -27,7 +27,7 @@ pub const Stdio = union(enum) {
pub fn byteSlice(this: *const Stdio) []const u8 {
return switch (this.*) {
.capture => this.capture.slice(),
.capture => this.capture.buf.slice(),
.array_buffer => this.array_buffer.array_buffer.byteSlice(),
.blob => this.blob.slice(),
else => &[_]u8{},