GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: improve working in stream.markdown · nodejs/node@f6d3b87

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • stream.markdown
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/stream.markdown‎

Copy file name to clipboardExpand all lines: doc/api/stream.markdown
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.