File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ changes:
322
322
323
323
Create an ` AsyncIterator ` object that iterates through each line in the input
324
324
stream as a string. This method allows asynchronous iteration of
325
- ` readline.Interface ` objects through ` for ` - ` await ` - ` of ` loops.
325
+ ` readline.Interface ` objects through ` for await... of ` loops.
326
326
327
327
Errors in the input stream are not forwarded.
328
328
@@ -556,7 +556,7 @@ rl.on('line', (line) => {
556
556
557
557
A common use case for ` readline ` is to consume an input file one line at a
558
558
time. The easiest way to do so is leveraging the [ ` fs.ReadStream ` ] [ ] API as
559
- well as a ` for ` - ` await ` - ` of ` loop:
559
+ well as a ` for await... of ` loop:
560
560
561
561
``` js
562
562
const fs = require (' fs' );
@@ -597,7 +597,7 @@ rl.on('line', (line) => {
597
597
});
598
598
```
599
599
600
- Currently, ` for ` - ` await ` - ` of ` loop can be a bit slower. If ` async ` / ` await `
600
+ Currently, ` for await... of ` loop can be a bit slower. If ` async ` / ` await `
601
601
flow and speed are both essential, a mixed approach can be applied:
602
602
603
603
``` js
You can’t perform that action at this time.
0 commit comments