docs: update var names in readline docs to be consistent
authorJames Koval <james.ross.koval@gmail.com>
Sun, 6 May 2012 18:23:09 +0000 (11:23 -0700)
committerNathan Rajlich <nathan@tootallnate.net>
Sun, 6 May 2012 18:23:09 +0000 (11:23 -0700)
Closes #3201.

doc/api/readline.markdown

index 6d1236806df242b1d954ee93ac1ec747882f2c82..d586b646c03aba6b7548f47eee693e5f000cf283 100644 (file)
@@ -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: