Skip to content

Commit 43a5161

Browse files
meixgbengl
authored andcommitted
doc: fix wrong indent in stream documentation
PR-URL: #41943 Reviewed-By: Mestery <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent dca2692 commit 43a5161

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/api/stream.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ async function showBoth() {
16831683
showBoth();
16841684
```
16851685

1686-
### `readable.map(fn[, options])`
1686+
##### `readable.map(fn[, options])`
16871687

16881688
<!-- YAML
16891689
added: v17.4.0
@@ -1728,7 +1728,7 @@ for await (const result of dnsResults) {
17281728
}
17291729
```
17301730

1731-
### `readable.filter(fn[, options])`
1731+
##### `readable.filter(fn[, options])`
17321732

17331733
<!-- YAML
17341734
added: v17.4.0
@@ -1777,7 +1777,7 @@ for await (const result of dnsResults) {
17771777
}
17781778
```
17791779

1780-
### `readable.forEach(fn[, options])`
1780+
##### `readable.forEach(fn[, options])`
17811781

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

1839-
### `readable.toArray([options])`
1839+
##### `readable.toArray([options])`
18401840

18411841
<!-- YAML
18421842
added: v17.5.0
@@ -1874,7 +1874,7 @@ const dnsResults = await Readable.from([
18741874
}, { concurrency: 2 }).toArray();
18751875
```
18761876

1877-
### `readable.some(fn[, options])`
1877+
##### `readable.some(fn[, options])`
18781878

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

1926-
### `readable.find(fn[, options])`
1926+
##### `readable.find(fn[, options])`
19271927

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

1976-
### `readable.every(fn[, options])`
1976+
##### `readable.every(fn[, options])`
19771977

19781978
<!-- YAML
19791979
added: v17.5.0
@@ -2022,7 +2022,7 @@ console.log(allBigFiles);
20222022
console.log('done'); // Stream has finished
20232023
```
20242024

2025-
### `readable.flatMap(fn[, options])`
2025+
##### `readable.flatMap(fn[, options])`
20262026

20272027
<!-- YAML
20282028
added: v17.5.0
@@ -2071,7 +2071,7 @@ for await (const result of concatResult) {
20712071
}
20722072
```
20732073

2074-
### `readable.drop(limit[, options])`
2074+
##### `readable.drop(limit[, options])`
20752075

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

2096-
### `readable.take(limit[, options])`
2096+
##### `readable.take(limit[, options])`
20972097

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

2118-
### `readable.asIndexedPairs([options])`
2118+
##### `readable.asIndexedPairs([options])`
21192119

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

2142-
### `readable.reduce(fn[, initial[, options]])`
2142+
##### `readable.reduce(fn[, initial[, options]])`
21432143

21442144
<!-- YAML
21452145
added: v17.5.0

0 commit comments

Comments
 (0)