Skip to content

Commit 71aa302

Browse files
ChALkeRMyles Borins
authored and
Myles Borins
committed
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: #4900 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 3555963 commit 71aa302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/readline.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ nothing is displayed.
6969
Example usage:
7070

7171
```js
72-
interface.question('What is your favorite food?', (answer) => {
72+
rl.question('What is your favorite food?', (answer) => {
7373
console.log(`Oh, so your favorite food is ${answer}`);
7474
});
7575
```

0 commit comments

Comments
 (0)