Skip to content

Commit f6d3b87

Browse files
jasnellrvagg
authored andcommitted
doc: improve working in stream.markdown
per: nodejs/node-v0.x-archive#8430 originally submitted by @mscdex Reviewed By: Sakthipriyan Vairamani <[email protected]> PR-URL: #2378
1 parent b5da894 commit f6d3b87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/stream.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -1215,19 +1215,19 @@ as a result of this chunk.
12151215

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

12221222
```javascript
12231223
transform.prototype._transform = function (data, encoding, callback) {
12241224
this.push(data);
12251225
callback();
1226-
}
1226+
};
12271227

12281228
transform.prototype._transform = function (data, encoding, callback) {
12291229
callback(null, data);
1230-
}
1230+
};
12311231
```
12321232

12331233
This method is prefixed with an underscore because it is internal to

0 commit comments

Comments
 (0)