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 <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.