Skip to content

Commit 41337c5

Browse files
committed
Changed line to buf
1 parent ac894be commit 41337c5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

n-readlines/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import LineByLine from 'n-readlines'
2323
const fname = process.argv[2]
2424
const reader = new LineByLine(fname)
2525

26-
let line = ''
26+
let buf
2727

28-
while (line = reader.next()) {
29-
console.log(line.toString('utf8'))
28+
while (buf = reader.next()) {
29+
console.log(buf.toString('utf8'))
3030
}
3131
```
3232

n-readlines/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import LineByLine from 'n-readlines'
33
const fname = process.argv[2]
44
const reader = new LineByLine(fname)
55

6-
let line = ''
6+
let buf
77

8-
while (line = reader.next()) {
9-
console.log(line.toString('utf8'))
8+
while (buf = reader.next()) {
9+
console.log(buf.toString('utf8'))
1010
}

0 commit comments

Comments
 (0)