diff options
author | Rich Trott <rtrott@gmail.com> | 2021-04-04 03:23:15 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-04-06 03:26:09 +0300 |
commit | ab42ef39300a986fee7149a8578fbac564798ae4 (patch) | |
tree | 5a9ec81731d2a7832835eac662f0c264cce93c39 /doc/api/readline.md | |
parent | d75543d8b5ab00c1757c1aafeb4424055a333dfc (diff) |
doc: add parentheses to function and move reference
Add parentheses as `unref()` is a function. Move it to the correct
lexically-sorted location in the reference list.
PR-URL: https://github.com/nodejs/node/pull/38066
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/readline.md')
-rw-r--r-- | doc/api/readline.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md index 18e84389c6c..aea1ac4da38 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -638,7 +638,7 @@ will not terminate until it receives `EOF` (<kbd>Ctrl</kbd>+<kbd>D</kbd> on Linux/macOS, <kbd>Ctrl</kbd>+<kbd>Z</kbd> followed by <kbd>Return</kbd> on Windows). If you want your application to exit without waiting for user input, you can -[`unref`][] the standard input stream: +[`unref()`][] the standard input stream: ```js process.stdin.unref(); @@ -978,5 +978,5 @@ const { createInterface } = require('readline'); [`process.stdin`]: process.md#process_process_stdin [`process.stdout`]: process.md#process_process_stdout [`rl.close()`]: #readline_rl_close +[`unref()`]: net.md#net_socket_unref [reading files]: #readline_example_read_file_stream_line_by_line -[`unref`]: net.md#net_socket_unref |