Skip to content

Commit 8615fa1

Browse files
Trotttargos
authored andcommitted
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: #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]>
1 parent 1cb3d89 commit 8615fa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/readline.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ will not terminate until it receives `EOF` (<kbd>Ctrl</kbd>+<kbd>D</kbd> on
561561
Linux/macOS, <kbd>Ctrl</kbd>+<kbd>Z</kbd> followed by <kbd>Return</kbd> on
562562
Windows).
563563
If you want your application to exit without waiting for user input, you can
564-
[`unref`][] the standard input stream:
564+
[`unref()`][] the standard input stream:
565565

566566
```js
567567
process.stdin.unref();
@@ -901,5 +901,5 @@ const { createInterface } = require('readline');
901901
[`process.stdin`]: process.md#process_process_stdin
902902
[`process.stdout`]: process.md#process_process_stdout
903903
[`rl.close()`]: #readline_rl_close
904+
[`unref()`]: net.md#net_socket_unref
904905
[reading files]: #readline_example_read_file_stream_line_by_line
905-
[`unref`]: net.md#net_socket_unref

0 commit comments

Comments
 (0)