Skip to content

Commit

Permalink
doc: improve working in stream.markdown
Browse files Browse the repository at this point in the history
per: nodejs/node-v0.x-archive#8430

originally submitted by @mscdex
  • Loading branch information
jasnell committed Aug 26, 2015
1 parent 3d5056f commit a90e5fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/stream.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1215,19 +1215,19 @@ as a result of this chunk.

Call the callback function only when the current chunk is completely
consumed. Note that there may or may not be output as a result of any
particular input chunk. If you supply output as the second argument to the
callback, it will be passed to push method, in other words the following are
particular input chunk. If you supply a second argument to the callback
it will be passed to the push method. In other words the following are
equivalent:

```javascript
transform.prototype._transform = function (data, encoding, callback) {
this.push(data);
callback();
}
};

transform.prototype._transform = function (data, encoding, callback) {
callback(null, data);
}
};
```

This method is prefixed with an underscore because it is internal to
Expand Down

0 comments on commit a90e5fe

Please sign in to comment.