Skip to content

Commit

Permalink
doc: fix wrong indent in stream documentation
Browse files Browse the repository at this point in the history
PR-URL: #41943
Reviewed-By: Mestery <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
meixg authored and bengl committed Feb 22, 2022
1 parent dca2692 commit 43a5161
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ async function showBoth() {
showBoth();
```

### `readable.map(fn[, options])`
##### `readable.map(fn[, options])`

<!-- YAML
added: v17.4.0
Expand Down Expand Up @@ -1728,7 +1728,7 @@ for await (const result of dnsResults) {
}
```

### `readable.filter(fn[, options])`
##### `readable.filter(fn[, options])`

<!-- YAML
added: v17.4.0
Expand Down Expand Up @@ -1777,7 +1777,7 @@ for await (const result of dnsResults) {
}
```

### `readable.forEach(fn[, options])`
##### `readable.forEach(fn[, options])`

<!-- YAML
added: v17.5.0
Expand Down Expand Up @@ -1836,7 +1836,7 @@ await dnsResults.forEach((result) => {
console.log('done'); // Stream has finished
```

### `readable.toArray([options])`
##### `readable.toArray([options])`

<!-- YAML
added: v17.5.0
Expand Down Expand Up @@ -1874,7 +1874,7 @@ const dnsResults = await Readable.from([
}, { concurrency: 2 }).toArray();
```

### `readable.some(fn[, options])`
##### `readable.some(fn[, options])`

<!-- YAML
added: v17.5.0
Expand Down Expand Up @@ -1923,7 +1923,7 @@ console.log(anyBigFile); // `true` if any file in the list is bigger than 1MB
console.log('done'); // Stream has finished
```

### `readable.find(fn[, options])`
##### `readable.find(fn[, options])`

<!-- YAML
added: v17.5.0
Expand Down Expand Up @@ -1973,7 +1973,7 @@ console.log(foundBigFile); // File name of large file, if any file in the list i
console.log('done'); // Stream has finished
```

### `readable.every(fn[, options])`
##### `readable.every(fn[, options])`

<!-- YAML
added: v17.5.0
Expand Down Expand Up @@ -2022,7 +2022,7 @@ console.log(allBigFiles);
console.log('done'); // Stream has finished
```

### `readable.flatMap(fn[, options])`
##### `readable.flatMap(fn[, options])`

<!-- YAML
added: v17.5.0
Expand Down Expand Up @@ -2071,7 +2071,7 @@ for await (const result of concatResult) {
}
```

### `readable.drop(limit[, options])`
##### `readable.drop(limit[, options])`

<!-- YAML
added: v17.5.0
Expand All @@ -2093,7 +2093,7 @@ import { Readable } from 'stream';
await Readable.from([1, 2, 3, 4]).drop(2).toArray(); // [3, 4]
```

### `readable.take(limit[, options])`
##### `readable.take(limit[, options])`

<!-- YAML
added: v17.5.0
Expand All @@ -2115,7 +2115,7 @@ import { Readable } from 'stream';
await Readable.from([1, 2, 3, 4]).take(2).toArray(); // [1, 2]
```

### `readable.asIndexedPairs([options])`
##### `readable.asIndexedPairs([options])`

<!-- YAML
added: v17.5.0
Expand All @@ -2139,7 +2139,7 @@ const pairs = await Readable.from(['a', 'b', 'c']).asIndexedPairs().toArray();
console.log(pairs); // [[0, 'a'], [1, 'b'], [2, 'c']]
```

### `readable.reduce(fn[, initial[, options]])`
##### `readable.reduce(fn[, initial[, options]])`

<!-- YAML
added: v17.5.0
Expand Down

0 comments on commit 43a5161

Please sign in to comment.