From 13c8bc8917a152487110b734680af631dfdae59c Mon Sep 17 00:00:00 2001 From: Gil Pedersen Date: Fri, 1 Mar 2013 23:15:28 +0100 Subject: [PATCH] doc: Update to reflect new _read() interface --- doc/api/stream.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }; ```