diff options
author | Jesse W. Collins <jesse.w.collins@gmail.com> | 2018-11-08 08:55:28 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-11-15 11:48:27 -0800 |
commit | d4653d5a7d020b7532ddfbdc5284f3ec0d96045a (patch) | |
tree | 25370b2945e47a7d08c88deb038fdf4b2d6ee5ad /lib | |
parent | 9b2ffff62cdbfe6ab538e87aafa5828bfbaaa196 (diff) | |
download | android-node-v8-d4653d5a7d020b7532ddfbdc5284f3ec0d96045a.tar.gz android-node-v8-d4653d5a7d020b7532ddfbdc5284f3ec0d96045a.tar.bz2 android-node-v8-d4653d5a7d020b7532ddfbdc5284f3ec0d96045a.zip |
stream: change comment on duplex stream options
'options.XXX' did not convey to me how to use camelCase for different
readable and writable options on a duplex stream. Give an example
instead.
PR-URL: https://github.com/nodejs/node/pull/24247
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_stream_writable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js index d62c95ad80..022dcffdd7 100644 --- a/lib/_stream_writable.js +++ b/lib/_stream_writable.js @@ -57,8 +57,8 @@ function WritableState(options, stream, isDuplex) { // Duplex streams are both readable and writable, but share // the same options object. // However, some cases require setting options to different - // values for the readable and the writable sides of the duplex stream. - // These options can be provided separately as readableXXX and writableXXX. + // values for the readable and the writable sides of the duplex stream, + // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Stream.Duplex; |