From 40899653afc3bba754f14cdbff6971d66ac408d1 Mon Sep 17 00:00:00 2001 From: Eric Bariaux <375613+ebariaux@users.noreply.github.com> Date: Wed, 16 Jul 2025 19:24:16 +0200 Subject: [PATCH] Update README.md Fix wrongly referring to input instead of output --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 49cb867..26eebee 100644 --- a/README.md +++ b/README.md @@ -210,25 +210,25 @@ Use it by setting `.asyncSequence` for `input`. This option means the `Subprocess` won’t collect or redirect output from the child process. -Use it by setting `.discarded` for `input` or `error`. +Use it by setting `.discarded` for `output` or `error`. #### `FileDescriptorOutput` This option writes output to a specified `FileDescriptor`. You can choose to have the `Subprocess` close the file descriptor after spawning. -Use it by setting `.fileDescriptor(closeAfterSpawningProcess:)` for `input` or `error`. +Use it by setting `.fileDescriptor(closeAfterSpawningProcess:)` for `output` or `error`. #### `StringOutput` This option collects output as a `String` with the given encoding. -Use it by setting `.string` or `.string(limit:encoding:)` for `input` or `error`. +Use it by setting `.string` or `.string(limit:encoding:)` for `output` or `error`. #### `BytesOutput` This option collects output as `[UInt8]`. -Use it by setting `.bytes` or `.bytes(limit:)` for `input` or `error`. +Use it by setting `.bytes` or `.bytes(limit:)` for `output` or `error`. ### Cross-platform support