mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
fix: clarify error codes in comment
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user