From e2de0bfd9338321e59c0e157bab0696f4ce8a9a8 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sat, 3 Jan 2026 13:44:29 +0100 Subject: [PATCH] fix: clarify error codes in comment --- src/unicode/props_uucode.zig | 3 ++- src/unicode/symbols_uucode.zig | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unicode/props_uucode.zig b/src/unicode/props_uucode.zig index 9813ecf43..bee942422 100644 --- a/src/unicode/props_uucode.zig +++ b/src/unicode/props_uucode.zig @@ -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. diff --git a/src/unicode/symbols_uucode.zig b/src/unicode/symbols_uucode.zig index 1a7e20252..794ca5bab 100644 --- a/src/unicode/symbols_uucode.zig +++ b/src/unicode/symbols_uucode.zig @@ -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.