From 8b9ff19bda47d3fef6846fec1a31ce2caf70c2d4 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 1e32507b810db9..c2b77c524533bf 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}`); }); ```