From c86b7488292d36ab992cfd45c24dec4defc504dc Mon Sep 17 00:00:00 2001 From: "Jesse W. Collins" Date: Thu, 8 Nov 2018 08:55:28 -0500 Subject: [PATCH] changed 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, so I gave an example instead. --- lib/_stream_writable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js index 160179cd0e84fa..34b26c8e84dc0a 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;