From ab42ef39300a986fee7149a8578fbac564798ae4 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 3 Apr 2021 17:23:15 -0700 Subject: [PATCH] doc: add parentheses to function and move reference MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add parentheses as `unref()` is a function. Move it to the correct lexically-sorted location in the reference list. PR-URL: https://github.com/nodejs/node/pull/38066 Reviewed-By: Darshan Sen Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- doc/api/readline.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/readline.md b/doc/api/readline.md index 18e84389c6c1a2..aea1ac4da38622 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -638,7 +638,7 @@ will not terminate until it receives `EOF` (Ctrl+D on Linux/macOS, Ctrl+Z followed by Return 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