Skip to content

Commit

Permalink
doc: add parentheses to function and move reference
Browse files Browse the repository at this point in the history
Add parentheses as `unref()` is a function. Move it to the correct
lexically-sorted location in the reference list.

PR-URL: #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>
  • Loading branch information
Trott authored and targos committed May 1, 2021
1 parent 1cb3d89 commit 8615fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/readline.md
Expand Up @@ -561,7 +561,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();
Expand Down Expand Up @@ -901,5 +901,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

0 comments on commit 8615fa1

Please sign in to comment.