diff --git a/doc/api/readline.md b/doc/api/readline.md index 9003d4d2eb301d..6ddbd1cdf6af56 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -262,6 +262,10 @@ rl.question('What is your favorite food?', (answer) => { }); ``` +*Note*: The `callback` function passed to `rl.question()` does not follow the +typical pattern of accepting an `Error` object or `null` as the first argument. +The `callback` is called with the provided answer as the only argument.git + ### rl.resume()