From c4d3e9164db8c8d47334e6f4445afc81754fccc7 Mon Sep 17 00:00:00 2001 From: ChALkeR Date: Wed, 27 Jan 2016 12:48:36 +0300 Subject: [PATCH] doc: don't use "interface" as a variable name In readline.markdown, don't use strict mode reserved keyword "interface" as a variable name. This commit changes the name of one `readline.Interface` instance from "interface" to "rl", as it is named in other places of the doc. --- doc/api/readline.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/readline.markdown b/doc/api/readline.markdown index 82abf3e8c325df..9480a9f1b36cab 100644 --- a/doc/api/readline.markdown +++ b/doc/api/readline.markdown @@ -69,7 +69,7 @@ nothing is displayed. Example usage: ```js -interface.question('What is your favorite food?', (answer) => { +rl.question('What is your favorite food?', (answer) => { console.log(`Oh, so your favorite food is ${answer}`); }); ```