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 463f294

Browse filesBrowse files
Alex-SokolovMylesBorins
authored andcommitted
doc: correct comment error in stream.md
Fix comment about remove listener (not setting) PR-URL: #11804 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
1 parent 8a521fe commit 463f294
Copy full SHA for 463f294

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ function parseHeader(stream, callback) {
10071007
const remaining = split.join('\n\n');
10081008
const buf = Buffer.from(remaining, 'utf8');
10091009
stream.removeListener('error', callback);
1010-
// set the readable listener before unshifting
1010+
// remove the readable listener before unshifting
10111011
stream.removeListener('readable', onReadable);
10121012
if (buf.length)
10131013
stream.unshift(buf);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.