doc: fix two doc errors in stream and process

`process.stdout` always blocks as of
20176a9841

`WritableState.buffer` is `getBuffer()` as of
91586661c9

PR-URL: https://github.com/nodejs/node/pull/2549
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
Reviewed-By: Evan Lucas <evanlucas@me.com>
This commit is contained in:
Jeremiah Senkpiel committed 2015-09-14 09:39:59 -04:00
1 parent abb2a4b8fe
commit 892bf65d9a
2 files changed
+3 -9

No files matched your search

+1 -7
View File
@@ -256,13 +256,7 @@ For example, a `console.log` equivalent could look like this:
`process.stderr` and `process.stdout` are unlike other streams in Node.js in
that they cannot be closed (`end()` will throw), they never emit the `finish`
event and that writes are usually blocking.
- They are blocking in the case that they refer to regular files or TTY file
descriptors.
- In the case they refer to pipes:
- They are blocking in Linux/Unix.
- They are non-blocking like other streams in Windows.
event and that writes are always blocking.
To check if Node.js is being run in a TTY context, read the `isTTY` property
on `process.stderr`, `process.stdout`, or `process.stdin`:
+2 -2
View File
@@ -1440,8 +1440,8 @@ var transform = new stream.Transform({
<!--type=misc-->
Both Writable and Readable streams will buffer data on an internal
object called `_writableState.buffer` or `_readableState.buffer`,
respectively.
object which can be retrieved from `_writableState.getBuffer()` or
`_readableState.buffer`, respectively.
The amount of data that will potentially be buffered depends on the
`highWaterMark` option which is passed into the constructor.