commit ab4fa591f932d673556020c78fb4104f5b11f256
parent 2b407991171c2a6f46e26c3278852f87599f6a43
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 4 Feb 2023 00:50:55 -0500
os::exec: update doc comment
Now that os::stderr is an io::handle, os::stderr_file needs to be used
instead.
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/os/exec/cmd.ha b/os/exec/cmd.ha
@@ -140,8 +140,8 @@ export fn setenv(cmd: *command, key: str, value: str) (void | errors::invalid) =
// This operation is performed atomically, such that the following code swaps
// stdout and stderr:
//
-// exec::addfile(&cmd, os::stderr, os::stdout_file);
-// exec::addfile(&cmd, os::stdout_file, os::stderr);
+// exec::addfile(&cmd, os::stderr_file, os::stdout_file);
+// exec::addfile(&cmd, os::stdout_file, os::stderr_file);
//
// Pass [[nullfd]] in the 'source' argument to map the child's file descriptor
// to /dev/null or the appropriate platform-specific equivalent.