Skip to content

Commit e21831b

Browse files
meixgdanielleadams
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 e55f340 commit e21831b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

doc/api/stream.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ async function showBoth() {
16821682
showBoth();
16831683
```
16841684

1685-
### `readable.map(fn[, options])`
1685+
##### `readable.map(fn[, options])`
16861686

16871687
<!-- YAML
16881688
added: v16.14.0
@@ -1726,7 +1726,7 @@ for await (const result of dnsResults) {
17261726
}
17271727
```
17281728

1729-
### `readable.filter(fn[, options])`
1729+
##### `readable.filter(fn[, options])`
17301730

17311731
<!-- YAML
17321732
added: v16.14.0
@@ -1775,7 +1775,7 @@ for await (const result of dnsResults) {
17751775
}
17761776
```
17771777

1778-
### `readable.forEach(fn[, options])`
1778+
##### `readable.forEach(fn[, options])`
17791779

17801780
<!-- YAML
17811781
added: REPLACEME
@@ -1834,7 +1834,7 @@ await dnsResults.forEach((result) => {
18341834
console.log('done'); // Stream has finished
18351835
```
18361836

1837-
### `readable.toArray([options])`
1837+
##### `readable.toArray([options])`
18381838

18391839
<!-- YAML
18401840
added: REPLACEME
@@ -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: REPLACEME
@@ -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.every(fn[, options])`
1926+
##### `readable.every(fn[, options])`
19271927

19281928
<!-- YAML
19291929
added: REPLACEME
@@ -1972,7 +1972,7 @@ console.log(allBigFiles);
19721972
console.log('done'); // Stream has finished
19731973
```
19741974

1975-
### `readable.flatMap(fn[, options])`
1975+
##### `readable.flatMap(fn[, options])`
19761976

19771977
<!-- YAML
19781978
added: REPLACEME
@@ -2021,7 +2021,7 @@ for await (const result of concatResult) {
20212021
}
20222022
```
20232023

2024-
### `readable.drop(limit[, options])`
2024+
##### `readable.drop(limit[, options])`
20252025

20262026
<!-- YAML
20272027
added: REPLACEME
@@ -2043,7 +2043,7 @@ import { Readable } from 'stream';
20432043
await Readable.from([1, 2, 3, 4]).drop(2).toArray(); // [3, 4]
20442044
```
20452045

2046-
### `readable.take(limit[, options])`
2046+
##### `readable.take(limit[, options])`
20472047

20482048
<!-- YAML
20492049
added: REPLACEME
@@ -2065,7 +2065,7 @@ import { Readable } from 'stream';
20652065
await Readable.from([1, 2, 3, 4]).take(2).toArray(); // [1, 2]
20662066
```
20672067

2068-
### `readable.asIndexedPairs([options])`
2068+
##### `readable.asIndexedPairs([options])`
20692069

20702070
<!-- YAML
20712071
added: REPLACEME
@@ -2089,7 +2089,7 @@ const pairs = await Readable.from(['a', 'b', 'c']).asIndexedPairs().toArray();
20892089
console.log(pairs); // [[0, 'a'], [1, 'b'], [2, 'c']]
20902090
```
20912091

2092-
### `readable.reduce(fn[, initial[, options]])`
2092+
##### `readable.reduce(fn[, initial[, options]])`
20932093

20942094
<!-- YAML
20952095
added: REPLACEME

0 commit comments

Comments
 (0)