doc: improve working in stream.markdown
authorJames M Snell <jasnell@gmail.com>
Fri, 14 Aug 2015 17:39:20 +0000 (10:39 -0700)
committerJames M Snell <jasnell@gmail.com>
Wed, 26 Aug 2015 01:51:47 +0000 (18:51 -0700)
per: https://github.com/joyent/node/pull/8430

originally submitted by @mscdex

Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/2378

doc/api/stream.markdown

index e30f4c8..d32a25e 100644 (file)
@@ -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