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
Johannes Rieken 8 years ago
committed by James M Snell
parent
commit
4e8eb628c1
  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
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
`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
predictable handling of errors.

Loading…
Cancel
Save