Skip to content

Commit 6d61296

Browse 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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Brian White <[email protected]>
1 parent ea0dd92 commit 6d61296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
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)