diff options
author | Wang Xinyong <wangxy.chn@gmail.com> | 2017-02-03 14:00:20 +0800 |
---|---|---|
committer | Matteo Collina <hello@matteocollina.com> | 2017-03-03 14:16:24 -0800 |
commit | 202b07f4148d00bbf8fe50dc4b05d27a58848d70 (patch) | |
tree | 5d0a69f0e4e76cfac329eafecd9f0c818a643d01 /lib/_stream_readable.js | |
parent | 1004b9b4ad39cf24fc5d524d6fadcaadcb1420bf (diff) | |
download | android-node-v8-202b07f4148d00bbf8fe50dc4b05d27a58848d70.tar.gz android-node-v8-202b07f4148d00bbf8fe50dc4b05d27a58848d70.tar.bz2 android-node-v8-202b07f4148d00bbf8fe50dc4b05d27a58848d70.zip |
stream: fix comment for sync flag of ReadableState
It seems that the comment for sync flag of ReadableState is
copied from WritableState without modification.
PR-URL: https://github.com/nodejs/node/pull/11139
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'lib/_stream_readable.js')
-rw-r--r-- | lib/_stream_readable.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 49ea08e857..0c5d1ef5d8 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -63,10 +63,10 @@ function ReadableState(options, stream) { this.endEmitted = false; this.reading = false; - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. + // a flag to be able to tell if the event 'readable'/'data' is emitted + // immediately, or on a later tick. We set this to true at first, because + // any actions that shouldn't happen until "later" should generally also + // not happen before the first read call. this.sync = true; // whenever we return null, then we set a flag to say |