Skip to content

Commit 9651f44

Browse files
authored
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 86fba23 commit 9651f44

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

doc/api/stream.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ async function showBoth() {
17371737
showBoth();
17381738
```
17391739

1740-
### `readable.map(fn[, options])`
1740+
##### `readable.map(fn[, options])`
17411741

17421742
<!-- YAML
17431743
added:
@@ -1784,7 +1784,7 @@ for await (const result of dnsResults) {
17841784
}
17851785
```
17861786

1787-
### `readable.filter(fn[, options])`
1787+
##### `readable.filter(fn[, options])`
17881788

17891789
<!-- YAML
17901790
added:
@@ -1835,7 +1835,7 @@ for await (const result of dnsResults) {
18351835
}
18361836
```
18371837

1838-
### `readable.forEach(fn[, options])`
1838+
##### `readable.forEach(fn[, options])`
18391839

18401840
<!-- YAML
18411841
added: v17.5.0
@@ -1894,7 +1894,7 @@ await dnsResults.forEach((result) => {
18941894
console.log('done'); // Stream has finished
18951895
```
18961896

1897-
### `readable.toArray([options])`
1897+
##### `readable.toArray([options])`
18981898

18991899
<!-- YAML
19001900
added: v17.5.0
@@ -1932,7 +1932,7 @@ const dnsResults = await Readable.from([
19321932
}, { concurrency: 2 }).toArray();
19331933
```
19341934

1935-
### `readable.some(fn[, options])`
1935+
##### `readable.some(fn[, options])`
19361936

19371937
<!-- YAML
19381938
added: v17.5.0
@@ -1981,7 +1981,7 @@ console.log(anyBigFile); // `true` if any file in the list is bigger than 1MB
19811981
console.log('done'); // Stream has finished
19821982
```
19831983

1984-
### `readable.find(fn[, options])`
1984+
##### `readable.find(fn[, options])`
19851985

19861986
<!-- YAML
19871987
added: v17.5.0
@@ -2031,7 +2031,7 @@ console.log(foundBigFile); // File name of large file, if any file in the list i
20312031
console.log('done'); // Stream has finished
20322032
```
20332033

2034-
### `readable.every(fn[, options])`
2034+
##### `readable.every(fn[, options])`
20352035

20362036
<!-- YAML
20372037
added: v17.5.0
@@ -2080,7 +2080,7 @@ console.log(allBigFiles);
20802080
console.log('done'); // Stream has finished
20812081
```
20822082

2083-
### `readable.flatMap(fn[, options])`
2083+
##### `readable.flatMap(fn[, options])`
20842084

20852085
<!-- YAML
20862086
added: v17.5.0
@@ -2129,7 +2129,7 @@ for await (const result of concatResult) {
21292129
}
21302130
```
21312131

2132-
### `readable.drop(limit[, options])`
2132+
##### `readable.drop(limit[, options])`
21332133

21342134
<!-- YAML
21352135
added: v17.5.0
@@ -2151,7 +2151,7 @@ import { Readable } from 'stream';
21512151
await Readable.from([1, 2, 3, 4]).drop(2).toArray(); // [3, 4]
21522152
```
21532153

2154-
### `readable.take(limit[, options])`
2154+
##### `readable.take(limit[, options])`
21552155

21562156
<!-- YAML
21572157
added: v17.5.0
@@ -2173,7 +2173,7 @@ import { Readable } from 'stream';
21732173
await Readable.from([1, 2, 3, 4]).take(2).toArray(); // [1, 2]
21742174
```
21752175

2176-
### `readable.asIndexedPairs([options])`
2176+
##### `readable.asIndexedPairs([options])`
21772177

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

2200-
### `readable.reduce(fn[, initial[, options]])`
2200+
##### `readable.reduce(fn[, initial[, options]])`
22012201

22022202
<!-- YAML
22032203
added: v17.5.0

0 commit comments

Comments
 (0)