Skip to content

Commit 01e8a3a

Browse files
jeswcollinsrvagg
authored andcommitted
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: #24247 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 415340f commit 01e8a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_stream_writable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ function WritableState(options, stream, isDuplex) {
5757
// Duplex streams are both readable and writable, but share
5858
// the same options object.
5959
// However, some cases require setting options to different
60-
// values for the readable and the writable sides of the duplex stream.
61-
// These options can be provided separately as readableXXX and writableXXX.
60+
// values for the readable and the writable sides of the duplex stream,
61+
// e.g. options.readableObjectMode vs. options.writableObjectMode, etc.
6262
if (typeof isDuplex !== 'boolean')
6363
isDuplex = stream instanceof Stream.Duplex;
6464

0 commit comments

Comments
 (0)