Browse Source

doc: fix missing negation in stream.md

Changing `..can result in expected` to `..can result in unexpected`

Fixes: https://github.com/nodejs/node/issues/10710
PR-URL: https://github.com/nodejs/node/pull/10712
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
v6.x
Johannes Rieken 8 years ago
committed by Myles Borins
parent
commit
b5fd61d77a
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      doc/api/stream.md

2
doc/api/stream.md

@ -1306,7 +1306,7 @@ It is recommended that errors occurring during the processing of the
`writable._write()` and `writable._writev()` methods are reported by invoking `writable._write()` and `writable._writev()` methods are reported by invoking
the callback and passing the error as the first argument. This will cause an the callback and passing the error as the first argument. This will cause an
`'error'` event to be emitted by the Writable. Throwing an Error from within `'error'` event to be emitted by the Writable. Throwing an Error from within
`writable._write()` can result in expected and inconsistent behavior depending `writable._write()` can result in unexpected and inconsistent behavior depending
on how the stream is being used. Using the callback ensures consistent and on how the stream is being used. Using the callback ensures consistent and
predictable handling of errors. predictable handling of errors.

Loading…
Cancel
Save