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 <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>
This commit is contained in:
parent
b004bbd9bd
commit
6894c62df5
@ -69,7 +69,7 @@ nothing is displayed.
|
|||||||
Example usage:
|
Example usage:
|
||||||
|
|
||||||
```js
|
```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}`);
|
console.log(`Oh, so your favorite food is ${answer}`);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user