Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 56913d2

Browse files
gluxontjfontaine
authored andcommitted
doc: Fix argument typo in SimpleProtocol example
1 parent 270c2de commit 56913d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ util.inherits(SimpleProtocol, Readable);
751751

752752
function SimpleProtocol(source, options) {
753753
if (!(this instanceof SimpleProtocol))
754-
return new SimpleProtocol(options);
754+
return new SimpleProtocol(source, options);
755755

756756
Readable.call(this, options);
757757
this._inBody = false;

0 commit comments

Comments
 (0)