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 committed Apr 6, 2021
1 parent d75543d commit ab42ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/readline.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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

0 comments on commit ab42ef3

Please sign in to comment.