Skip to content

Commit ae52b63

Browse files
Alex-Sokolovitaloacasas
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 e6f113d commit ae52b63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ function parseHeader(stream, callback) {
10161016
const remaining = split.join('\n\n');
10171017
const buf = Buffer.from(remaining, 'utf8');
10181018
stream.removeListener('error', callback);
1019-
// set the readable listener before unshifting
1019+
// remove the readable listener before unshifting
10201020
stream.removeListener('readable', onReadable);
10211021
if (buf.length)
10221022
stream.unshift(buf);

0 commit comments

Comments
 (0)