Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

doc: improve wording

  • Loading branch information...
commit 60fd8dd526058c52cc385afa4c73bbd877499ffa 1 parent c8e0bdd
@mscdex authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 doc/api/stream.markdown
View
8 doc/api/stream.markdown
@@ -1091,19 +1091,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 as the second argument to the
-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
Please sign in to comment.
Something went wrong with that request. Please try again.