doc: Update to reflect new _read() interface

pull/24507/merge
Gil Pedersen 2013-03-01 23:15:28 +01:00 committed by isaacs
parent 16ddc545bd
commit 13c8bc8917
1 changed files with 2 additions and 1 deletions

View File

@ -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();
};
```