Browse Source

doc: Update to reflect new _read() interface

v0.9.12-release
Gil Pedersen 12 years ago
committed by isaacs
parent
commit
13c8bc8917
  1. 3
      doc/api/stream.markdown

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

Loading…
Cancel
Save