Skip to content
This repository
Browse code

docs: update var names in readline docs to be consistent

Closes #3201.
  • Loading branch information...
commit 34f05a31952987c1d1f20e5e9838a18eecec1552 1 parent 33a9ac6
James Koval authored May 06, 2012 TooTallNate committed May 06, 2012

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  doc/api/readline.markdown
10  doc/api/readline.markdown
Source Rendered
@@ -9,21 +9,21 @@ Note that once you've invoked this module, your node program will not
9 9
 terminate until you've closed the interface. Here's how to allow your
10 10
 program to gracefully exit:
11 11
 
12  
-    var rl = require('readline');
  12
+    var readline = require('readline');
13 13
 
14  
-    var i = rl.createInterface({
  14
+    var rl = readline.createInterface({
15 15
       input: process.stdin,
16 16
       output: process.stdout
17 17
     });
18 18
 
19  
-    i.question("What do you think of node.js? ", function(answer) {
  19
+    rl.question("What do you think of node.js? ", function(answer) {
20 20
       // TODO: Log the answer in a database
21 21
       console.log("Thank you for your valuable feedback:", answer);
22 22
 
23  
-      i.close();
  23
+      rl.close();
24 24
     });
25 25
 
26  
-## rl.createInterface(options)
  26
+## readline.createInterface(options)
27 27
 
28 28
 Creates a readline `Interface` instance. Accepts an "options" Object that takes
29 29
 the following values:

0 notes on commit 34f05a3

Please sign in to comment.
Something went wrong with that request. Please try again.