From 965098a8ca0c388b5868a81c59667afe0486cd1c Mon Sep 17 00:00:00 2001 From: "Jesse W. Collins" Date: Thu, 8 Nov 2018 08:55:28 -0500 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- 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 ed354126f7d812..c1ab994bb2fa76 100644 --- a/lib/_stream_writable.js +++ b/lib/_stream_writable.js @@ -55,8 +55,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;