Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-Authored-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
ronag and Trott authored Oct 9, 2019
commit 50ee05490b3136dd0756e9a40d70cbcbca424181
6 changes: 3 additions & 3 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1656,11 +1656,11 @@ class MyWritable extends Writable {
}
```

When extending streams it is important to keep in mind what options the user
When extending streams, it is important to keep in mind what options the user
can and should provide before forwarding these to the base constructor. For
example if the implementation makes assumptions in regard to e.g. the
example, if the implementation makes assumptions in regard to e.g. the
`autoDestroy` and `emitClose` options, it becomes important to not allow the
user to override these. It is therefore recommend to be explicit about what
user to override these. It is therefore recommended to be explicit about what
options are forwarded instead of implicitly forwarding all options.

The new stream class must then implement one or more specific methods, depending
Expand Down