fix: clarify error codes in comment

This commit is contained in:
Tommy D. Rossi
2026-01-03 13:44:29 +01:00
parent 4ea669562e
commit e2de0bfd93
2 changed files with 4 additions and 2 deletions

View File

@@ -88,7 +88,8 @@ pub fn main() !void {
var stdout = std.fs.File.stdout().writer(&buf);
try t.writeZig(&stdout.interface);
// Use flush instead of end because stdout is a pipe when captured by
// the build system, and pipes cannot be truncated (especially on Windows).
// the build system, and pipes cannot be truncated (Windows returns
// INVALID_PARAMETER, Linux returns EINVAL).
try stdout.interface.flush();
// Uncomment when manually debugging to see our table sizes.

View File

@@ -35,7 +35,8 @@ pub fn main() !void {
var stdout = std.fs.File.stdout().writer(&buf);
try t.writeZig(&stdout.interface);
// Use flush instead of end because stdout is a pipe when captured by
// the build system, and pipes cannot be truncated (especially on Windows).
// the build system, and pipes cannot be truncated (Windows returns
// INVALID_PARAMETER, Linux returns EINVAL).
try stdout.interface.flush();
// Uncomment when manually debugging to see our table sizes.