GeezerVison is showing github.com — doc: fix two doc errors in stream and process · nodejs/node@0603a92
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/process.markdown +1-7Lines changed: 1 addition & 7 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -246,13 +246,7 @@ For example, a `console.log` equivalent could look like this: |
246 | 246 |
|
247 | 247 | `process.stderr` and `process.stdout` are unlike other streams in io.js in |
248 | 248 | that they cannot be closed (`end()` will throw), they never emit the `finish` |
249 | | -event and that writes are usually blocking. |
250 | | - |
251 | | -- They are blocking in the case that they refer to regular files or TTY file |
252 | | - descriptors. |
253 | | -- In the case they refer to pipes: |
254 | | - - They are blocking in Linux/Unix. |
255 | | - - They are non-blocking like other streams in Windows. |
| 249 | +event and that writes are always blocking. |
256 | 250 |
|
257 | 251 | To check if io.js is being run in a TTY context, read the `isTTY` property |
258 | 252 | on `process.stderr`, `process.stdout`, or `process.stdin`: |
|
Collapse file
Copy file name to clipboardExpand all lines: doc/api/stream.markdown +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1440,8 +1440,8 @@ var transform = new stream.Transform({ |
1440 | 1440 | <!--type=misc--> |
1441 | 1441 |
|
1442 | 1442 | Both Writable and Readable streams will buffer data on an internal |
1443 | | -object called `_writableState.buffer` or `_readableState.buffer`, |
1444 | | -respectively. |
| 1443 | +object which can be retrieved from `_writableState.getBuffer()` or |
| 1444 | +`_readableState.buffer`, respectively. |
1445 | 1445 |
|
1446 | 1446 | The amount of data that will potentially be buffered depends on the |
1447 | 1447 | `highWaterMark` option which is passed into the constructor. |
|