Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 965098a

Browse filesBrowse 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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 585db59 commit 965098a
Copy full SHA for 965098a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lib/_stream_writable.js‎

Copy file name to clipboardExpand all lines: lib/_stream_writable.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.