mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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>
This commit is contained in:
1 parent
bf95b074cd
commit
b73e98bf48
1 file changed
+1
-1
+1
-1
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user