Skip to content

Commit 463f294

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

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)