Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Rodriguez committed Aug 24, 2012
1 parent f63dcec commit 3cfec35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ function prompt (message, cb) {
line += buf;

function findBreak () {
var i = line.indexOf('\n');
if (i >= 0) return i;
var idx = line.indexOf('\n');
if (idx >= 0) return idx;
return line.indexOf('\r');
}

var ix;
var idx;
while ((idx = findBreak()) >= 0) {
process.stdin.removeListener('data', fn);
return cb(line.slice(0, idx), function end () {
Expand Down

0 comments on commit 3cfec35

Please sign in to comment.