Skip to content

Commit

Permalink
doc: fix a trivial mistake, expected -> unexpected
Browse files Browse the repository at this point in the history
In this context, 'expected' looks strange word.
  • Loading branch information
fmy committed Dec 23, 2016
1 parent 1c62ac3 commit 404222a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1503,9 +1503,9 @@ Implementers, and only from within the `readable._read()` method.
It is recommended that errors occurring during the processing of the
`readable._read()` method are emitted using the `'error'` event rather than
being thrown. Throwing an Error from within `readable._read()` can result in
expected and inconsistent behavior depending on whether the stream is operating
in flowing or paused mode. Using the `'error'` event ensures consistent and
predictable handling of errors.
unexpected and inconsistent behavior depending on whether the stream is
operating in flowing or paused mode. Using the `'error'` event ensures
consistent and predictable handling of errors.

```js
const Readable = require('stream').Readable;
Expand Down

0 comments on commit 404222a

Please sign in to comment.