Skip to content
This repository
Browse code

updated example

  • Loading branch information...
commit a6f4a8fbbf2c708d9e375fb03915d4b54a7d3318 1 parent f0dbc6e
Gabriel Llamas authored

Showing 2 changed files with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +2 2 README.md
  2. +2 2 examples/all-in-one.js
4 README.md
Source Rendered
@@ -36,9 +36,9 @@ new DataReader (file, { encoding: "utf8" })
36 36 .on ("error", function (error){
37 37 console.log (error);
38 38 })
39   - .on ("line", function (line, byteOffset){
  39 + .on ("line", function (line, nextByteOffset){
40 40 if (line === "Phasellus ultrices ligula sed odio ultricies egestas."){
41   - offset = byteOffset;
  41 + offset = nextByteOffset;
42 42 this.interrupt ();
43 43 }
44 44 })
4 examples/all-in-one.js
@@ -17,9 +17,9 @@ new DataReader (file, { encoding: "utf8" })
17 17 .on ("error", function (error){
18 18 console.log (error);
19 19 })
20   - .on ("line", function (line, byteOffset){
  20 + .on ("line", function (line, nextByteOffset){
21 21 if (line === "Phasellus ultrices ligula sed odio ultricies egestas."){
22   - offset = byteOffset;
  22 + offset = nextByteOffset;
23 23 this.interrupt ();
24 24 }
25 25 })

0 comments on commit a6f4a8f

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