Skip to content

Commit 5715ed4

Browse files
authored
Update README.md (#123)
Fix wrongly referring to input instead of output
1 parent 94b8d46 commit 5715ed4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,25 +210,25 @@ Use it by setting `.asyncSequence` for `input`.
210210

211211
This option means the `Subprocess` won’t collect or redirect output from the child process.
212212

213-
Use it by setting `.discarded` for `input` or `error`.
213+
Use it by setting `.discarded` for `output` or `error`.
214214

215215
#### `FileDescriptorOutput`
216216

217217
This option writes output to a specified `FileDescriptor`. You can choose to have the `Subprocess` close the file descriptor after spawning.
218218

219-
Use it by setting `.fileDescriptor(closeAfterSpawningProcess:)` for `input` or `error`.
219+
Use it by setting `.fileDescriptor(closeAfterSpawningProcess:)` for `output` or `error`.
220220

221221
#### `StringOutput`
222222

223223
This option collects output as a `String` with the given encoding.
224224

225-
Use it by setting `.string` or `.string(limit:encoding:)` for `input` or `error`.
225+
Use it by setting `.string` or `.string(limit:encoding:)` for `output` or `error`.
226226

227227
#### `BytesOutput`
228228

229229
This option collects output as `[UInt8]`.
230230

231-
Use it by setting `.bytes` or `.bytes(limit:)` for `input` or `error`.
231+
Use it by setting `.bytes` or `.bytes(limit:)` for `output` or `error`.
232232

233233

234234
### Cross-platform support

0 commit comments

Comments
 (0)