Skip to content

Commit

Permalink
doc: don't use "interface" as a variable name
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
ChALkeR authored and silverwind committed Jan 29, 2016
1 parent b004bbd commit 6894c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/readline.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
});
```
Expand Down

1 comment on commit 6894c62

@ChALkeR
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: this commit had a wrong Author field (i.e. nickname instead of a real name).
I shouldn't have used GitHub editor for that change.

Please sign in to comment.