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 <mestery@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
meixg authored and danielleadams committed Apr 24, 2022
1 parent e55f340 commit e21831b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions doc/api/stream.md
Expand Up @@ -1682,7 +1682,7 @@ async function showBoth() {
showBoth();
```

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

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

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

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

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

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

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

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

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

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

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

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

<!-- YAML
added: REPLACEME
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e21831b

Please sign in to comment.