Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated example

  • Loading branch information...
commit a6f4a8fbbf2c708d9e375fb03915d4b54a7d3318 1 parent f0dbc6e
@gagle authored
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 ();
}
})
Please sign in to comment.
Something went wrong with that request. Please try again.