doc: add missing comma in tty

PR-URL: https://github.com/nodejs/node/pull/37039
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Matthew Mario Di Pasquale 2021-01-23 11:45:10 -05:00 committed by James M Snell
parent d7640a37b2
commit 61f3b71d98
No known key found for this signature in database
GPG Key ID: 7341B15C070877AC
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const tty = require('tty');
When Node.js detects that it is being run with a text terminal ("TTY")
attached, [`process.stdin`][] will, by default, be initialized as an instance of
`tty.ReadStream` and both [`process.stdout`][] and [`process.stderr`][] will, by
default be instances of `tty.WriteStream`. The preferred method of determining
default, be instances of `tty.WriteStream`. The preferred method of determining
whether Node.js is being run within a TTY context is to check that the value of
the `process.stdout.isTTY` property is `true`: