From 8615fa1983e9b5234a430d9d4d6da2b37213b16f 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 c7bb1b3d782678..4c12427b32e95d 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -561,7 +561,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(); @@ -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