doc: fix two doc errors in stream and process · nodejs/node@2d77d03

Original file line numberDiff line numberDiff line change

@@ -256,13 +256,7 @@ For example, a `console.log` equivalent could look like this:

256256
257257

`process.stderr` and `process.stdout` are unlike other streams in Node.js in

258258

that they cannot be closed (`end()` will throw), they never emit the `finish`

259-

event and that writes are usually blocking.

260-
261-

- They are blocking in the case that they refer to regular files or TTY file

262-

descriptors.

263-

- In the case they refer to pipes:

264-

- They are blocking in Linux/Unix.

265-

- They are non-blocking like other streams in Windows.

259+

event and that writes are always blocking.

266260
267261

To check if Node.js is being run in a TTY context, read the `isTTY` property

268262

on `process.stderr`, `process.stdout`, or `process.stdin`: