Skip to content

Commit ab42ef3

Browse files
committed
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 d75543d commit ab42ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/api/readline.md

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

643643
```js
644644
process.stdin.unref();
@@ -978,5 +978,5 @@ const { createInterface } = require('readline');
978978
[`process.stdin`]: process.md#process_process_stdin
979979
[`process.stdout`]: process.md#process_process_stdout
980980
[`rl.close()`]: #readline_rl_close
981+
[`unref()`]: net.md#net_socket_unref
981982
[reading files]: #readline_example_read_file_stream_line_by_line
982-
[`unref`]: net.md#net_socket_unref

0 commit comments

Comments
 (0)