diff --git a/doc/api/stream.markdown b/doc/api/stream.markdown index 1590df5ad5e..a30eea3deff 100644 --- a/doc/api/stream.markdown +++ b/doc/api/stream.markdown @@ -169,7 +169,8 @@ source.onend = function() { }; // _read will be called when the stream wants to pull more data in -stream._read = function(size, cb) { +// the advisory size argument is ignored in this case. +stream._read = function(n) { source.readStart(); }; ```