Browse files

updated example

  • Loading branch information...
1 parent f0dbc6e commit a6f4a8fbbf2c708d9e375fb03915d4b54a7d3318 Gabriel Llamas committed Oct 4, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 examples/all-in-one.js
View
4 README.md
@@ -36,9 +36,9 @@ new DataReader (file, { encoding: "utf8" })
.on ("error", function (error){
console.log (error);
})
- .on ("line", function (line, byteOffset){
+ .on ("line", function (line, nextByteOffset){
if (line === "Phasellus ultrices ligula sed odio ultricies egestas."){
- offset = byteOffset;
+ offset = nextByteOffset;
this.interrupt ();
}
})
View
4 examples/all-in-one.js
@@ -17,9 +17,9 @@ new DataReader (file, { encoding: "utf8" })
.on ("error", function (error){
console.log (error);
})
- .on ("line", function (line, byteOffset){
+ .on ("line", function (line, nextByteOffset){
if (line === "Phasellus ultrices ligula sed odio ultricies egestas."){
- offset = byteOffset;
+ offset = nextByteOffset;
this.interrupt ();
}
})

0 comments on commit a6f4a8f

Please sign in to comment.