Skip to content

Commit 965098a

Browse files
jeswcollinscodebytere
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 585db59 commit 965098a

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
@@ -55,8 +55,8 @@ function WritableState(options, stream, isDuplex) {
5555
// Duplex streams are both readable and writable, but share
5656
// the same options object.
5757
// However, some cases require setting options to different
58-
// values for the readable and the writable sides of the duplex stream.
59-
// These options can be provided separately as readableXXX and writableXXX.
58+
// values for the readable and the writable sides of the duplex stream,
59+
// e.g. options.readableObjectMode vs. options.writableObjectMode, etc.
6060
if (typeof isDuplex !== 'boolean')
6161
isDuplex = stream instanceof Stream.Duplex;
6262

0 commit comments

Comments
 (0)