doc: fix wrong indent in stream documentation

PR-URL: https://github.com/nodejs/node/pull/41943
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Xuguang Mei authored and Danielle Adams committed 2022-04-23 22:25:59 -04:00
1 parent e55f340052
commit e21831bad1
1 file changed
+11 -11
+11 -11
View File
@@ -1682,7 +1682,7 @@ async function showBoth() {
showBoth();
```
### `readable.map(fn[, options])`
##### `readable.map(fn[, options])`
<!-- YAML
added: v16.14.0
@@ -1726,7 +1726,7 @@ for await (const result of dnsResults) {
}
```
### `readable.filter(fn[, options])`
##### `readable.filter(fn[, options])`
<!-- YAML
added: v16.14.0
@@ -1775,7 +1775,7 @@ for await (const result of dnsResults) {
}
```
### `readable.forEach(fn[, options])`
##### `readable.forEach(fn[, options])`
<!-- YAML
added: REPLACEME
@@ -1834,7 +1834,7 @@ await dnsResults.forEach((result) => {
console.log('done'); // Stream has finished
```
### `readable.toArray([options])`
##### `readable.toArray([options])`
<!-- YAML
added: REPLACEME
@@ -1874,7 +1874,7 @@ const dnsResults = await Readable.from([
}, { concurrency: 2 }).toArray();
```
### `readable.some(fn[, options])`
##### `readable.some(fn[, options])`
<!-- YAML
added: REPLACEME
@@ -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.every(fn[, options])`
##### `readable.every(fn[, options])`
<!-- YAML
added: REPLACEME
@@ -1972,7 +1972,7 @@ console.log(allBigFiles);
console.log('done'); // Stream has finished
```
### `readable.flatMap(fn[, options])`
##### `readable.flatMap(fn[, options])`
<!-- YAML
added: REPLACEME
@@ -2021,7 +2021,7 @@ for await (const result of concatResult) {
}
```
### `readable.drop(limit[, options])`
##### `readable.drop(limit[, options])`
<!-- YAML
added: REPLACEME
@@ -2043,7 +2043,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: REPLACEME
@@ -2065,7 +2065,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: REPLACEME
@@ -2089,7 +2089,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: REPLACEME