doc: don't use "interface" as a variable name
authorChALkeR <chalkerx@gmail.com>
Wed, 27 Jan 2016 09:48:36 +0000 (12:48 +0300)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
doc/api/readline.markdown

index 1e32507..c2b77c5 100644 (file)
@@ -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}`);
 });
 ```