Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

doc: improve wording #8430

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/api/stream.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down