From 71aa3029464b4c20dc75f6de44c4f30a4e0c935e 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. PR-URL: https://github.com/nodejs/node/pull/4900 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Minwoo Jung Reviewed-By: Roman Reiss --- 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 1e32507..c2b77c5 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}`); }); ``` -- 2.7.4