Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add parentheses to function and move reference #38066

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <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

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit ab42ef39300a986fee7149a8578fbac564798ae4
4 changes: 2 additions & 2 deletions doc/api/readline.md
Original file line number Diff line number Diff line change
@@ -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();
@@ -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