Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuguang Mei <meixg@foxmail.com>2022-02-12 20:57:43 +0300
committerGitHub <noreply@github.com>2022-02-12 20:57:43 +0300
commit9651f4400066d60869584e46428317934dc1e882 (patch)
treefb9103fb4658d68b5998ab828a4ea3c7ea9bcff7 /doc/api/stream.md
parent86fba23b1f7524889205a1c02e8f9010ad61998e (diff)
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>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index 3a46d2fe7e9..2ecce235330 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -1737,7 +1737,7 @@ async function showBoth() {
showBoth();
```
-### `readable.map(fn[, options])`
+##### `readable.map(fn[, options])`
<!-- YAML
added:
@@ -1784,7 +1784,7 @@ for await (const result of dnsResults) {
}
```
-### `readable.filter(fn[, options])`
+##### `readable.filter(fn[, options])`
<!-- YAML
added:
@@ -1835,7 +1835,7 @@ for await (const result of dnsResults) {
}
```
-### `readable.forEach(fn[, options])`
+##### `readable.forEach(fn[, options])`
<!-- YAML
added: v17.5.0
@@ -1894,7 +1894,7 @@ await dnsResults.forEach((result) => {
console.log('done'); // Stream has finished
```
-### `readable.toArray([options])`
+##### `readable.toArray([options])`
<!-- YAML
added: v17.5.0
@@ -1932,7 +1932,7 @@ const dnsResults = await Readable.from([
}, { concurrency: 2 }).toArray();
```
-### `readable.some(fn[, options])`
+##### `readable.some(fn[, options])`
<!-- YAML
added: v17.5.0
@@ -1981,7 +1981,7 @@ console.log(anyBigFile); // `true` if any file in the list is bigger than 1MB
console.log('done'); // Stream has finished
```
-### `readable.find(fn[, options])`
+##### `readable.find(fn[, options])`
<!-- YAML
added: v17.5.0
@@ -2031,7 +2031,7 @@ console.log(foundBigFile); // File name of large file, if any file in the list i
console.log('done'); // Stream has finished
```
-### `readable.every(fn[, options])`
+##### `readable.every(fn[, options])`
<!-- YAML
added: v17.5.0
@@ -2080,7 +2080,7 @@ console.log(allBigFiles);
console.log('done'); // Stream has finished
```
-### `readable.flatMap(fn[, options])`
+##### `readable.flatMap(fn[, options])`
<!-- YAML
added: v17.5.0
@@ -2129,7 +2129,7 @@ for await (const result of concatResult) {
}
```
-### `readable.drop(limit[, options])`
+##### `readable.drop(limit[, options])`
<!-- YAML
added: v17.5.0
@@ -2151,7 +2151,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: v17.5.0
@@ -2173,7 +2173,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: v17.5.0
@@ -2197,7 +2197,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: v17.5.0