Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
docs: update var names in readline docs to be consistent
Browse files Browse the repository at this point in the history
Closes #3201.
  • Loading branch information
jakl authored and TooTallNate committed May 6, 2012
1 parent 33a9ac6 commit 34f05a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc/api/readline.markdown
Expand Up @@ -9,21 +9,21 @@ Note that once you've invoked this module, your node program will not
terminate until you've closed the interface. Here's how to allow your
program to gracefully exit:

var rl = require('readline');
var readline = require('readline');

var i = rl.createInterface({
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});

i.question("What do you think of node.js? ", function(answer) {
rl.question("What do you think of node.js? ", function(answer) {
// TODO: Log the answer in a database
console.log("Thank you for your valuable feedback:", answer);

i.close();
rl.close();
});

## rl.createInterface(options)
## readline.createInterface(options)

Creates a readline `Interface` instance. Accepts an "options" Object that takes
the following values:
Expand Down

0 comments on commit 34f05a3

Please sign in to comment.