From 4e8eb628c1ff377d32767482b078eeb381081c2b Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 9 Jan 2017 16:54:07 +0100 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 291cda735a..98026f6a39 100644 --- a/doc/api/stream.md +++ b/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.