Skip to content

Commit e2207eb

Browse files
committed
fixup
1 parent 7ce4453 commit e2207eb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/api/stream.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,11 +1667,12 @@ of a stream that are intended for use by consumers (as described in the
16671667
[API for Stream Consumers][] section). Doing so may lead to adverse side effects
16681668
in application code consuming the stream.
16691669

1670-
It is highly discouraged to override any public method. As well as emitting
1671-
`'error'` events manually through `.emit(err)` instead of using API provided
1672-
callbacks or `.destroy(err)`. Doing so can break current and future stream
1673-
invariants leading to behaviour and/or compatibility issues with other streams,
1674-
stream utilities and user expectations.
1670+
It is highly discouraged to override any public method. As well as emitting any
1671+
internal events such as `'error'`, `'data'`, `'end'`, `'finish'` and `'close'`
1672+
manually through `.emit(err)` instead of using API provided callbacks or
1673+
`.destroy(err)`. Doing so can break current and future stream invariants
1674+
leading to behaviour and/or compatibility issues with other streams, stream
1675+
utilities and user expectations.
16751676

16761677
### Simplified Construction
16771678
<!-- YAML

0 commit comments

Comments
 (0)