Skip to content

Commit

Permalink
doc: make minor improvements to stream.md
Browse files Browse the repository at this point in the history
PR-URL: #28970
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
ronag authored and Trott committed Sep 22, 2019
1 parent bd02775 commit 1fceccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ added: v8.0.0
* Returns: {this}

Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`
event unless `emitClose` is set in `false`. After this call, the writable
event (unless `emitClose` is set to `false`). After this call, the writable
stream has ended and subsequent calls to `write()` or `end()` will result in
an `ERR_STREAM_DESTROYED` error.
This is a destructive and immediate way to destroy a stream. Previous calls to
Expand Down Expand Up @@ -935,7 +935,7 @@ added: v8.0.0
* Returns: {this}

Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`
event unless `emitClose` is set in `false`. After this call, the readable
event (unless `emitClose` is set to `false`). After this call, the readable
stream will release any internal resources and subsequent calls to `push()`
will be ignored.
Implementors should not override this method, but instead implement
Expand Down

0 comments on commit 1fceccb

Please sign in to comment.