Skip to content

Commit d105ade

Browse files
committed
doc: fix stdin/stdout stream direction description in child_process
1 parent ae228c1 commit d105ade

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/child_process.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@ pipes between the parent and child. The value is one of the following:
10661066
corresponds to the index in the `stdio` array. The stream must have an
10671067
underlying descriptor (file streams do not start until the `'open'` event has
10681068
occurred).
1069-
**NOTE:** While it is technically possible to pass `stdin` as a writable or
1070-
`stdout`/`stderr` as readable, it is not recommended.
1071-
Readable and writable streams are designed with distinct behaviors, and using
1072-
them incorrectly (e.g., passing a readable stream where a writable stream is
1069+
**NOTE:** While it is technically possible to pass `stdin` as a readable or
1070+
`stdout`/`stderr` as writable, it is not recommended.
1071+
Readable and writable streams are designed with distinct behaviors, and using
1072+
them incorrectly (e.g., passing a writable stream where a readable stream is
10731073
expected) can lead to unexpected results or errors. This practice is discouraged
10741074
as it may result in undefined behavior or dropped callbacks if the stream
10751075
encounters errors. Always ensure that `stdin` is used as readable and

0 commit comments

Comments
 (0)