doc: make minor improvements to stream.md

PR-URL: https://github.com/nodejs/node/pull/28970
Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
Robert Nagy 2019-08-05 12:01:33 +02:00 committed by Rich Trott
parent bd02775af8
commit 1fceccb4cf

View File

@ -375,7 +375,7 @@ added: v8.0.0
* Returns: {this} * Returns: {this}
Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` 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 stream has ended and subsequent calls to `write()` or `end()` will result in
an `ERR_STREAM_DESTROYED` error. an `ERR_STREAM_DESTROYED` error.
This is a destructive and immediate way to destroy a stream. Previous calls to This is a destructive and immediate way to destroy a stream. Previous calls to
@ -935,7 +935,7 @@ added: v8.0.0
* Returns: {this} * Returns: {this}
Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'` 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()` stream will release any internal resources and subsequent calls to `push()`
will be ignored. will be ignored.
Implementors should not override this method, but instead implement Implementors should not override this method, but instead implement