diff --git a/doc/api/readline.markdown b/doc/api/readline.markdown index 5a03e445885772..1e32507b810db9 100644 --- a/doc/api/readline.markdown +++ b/doc/api/readline.markdown @@ -118,8 +118,9 @@ the `input` stream receives a `^C`, respectively known as `SIGINT`. `function (line) {}` -Emitted whenever the `input` stream receives a `\n`, usually received when the -user hits enter, or return. This is a good hook to listen for user input. +Emitted whenever the `input` stream receives an end of line (`\n`, `\r`, or +`\r\n`), usually received when the user hits enter, or return. This is a good +hook to listen for user input. Example of listening for `'line'`: