Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Poissonnier <julien@caffeine.lu>2020-06-29 16:46:04 +0300
committerJames M Snell <jasnell@gmail.com>2020-07-04 00:53:17 +0300
commit647babc2fdfb717081e3f77871b4a59a7a8d7a31 (patch)
treeb4e260bd5ba780af5811bca9b6edc5e419c3d44e /doc/api/stream.md
parentd2c8b3efc345a29ce7d72511ed73f98fa8b6ee54 (diff)
doc: update wording in "Two reading modes"
PR-URL: https://github.com/nodejs/node/pull/34119 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index 9c1c9706864..060cb628443 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -715,8 +715,8 @@ instance, when the `readable.resume()` method is called without a listener
attached to the `'data'` event, or when a `'data'` event handler is removed
from the stream.
-Adding a [`'readable'`][] event handler automatically make the stream to
-stop flowing, and the data to be consumed via
+Adding a [`'readable'`][] event handler automatically makes the stream
+stop flowing, and the data has to be consumed via
[`readable.read()`][stream-read]. If the [`'readable'`][] event handler is
removed, then the stream will start flowing again if there is a
[`'data'`][] event handler.