You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc: add explicit bracket for markdown reference links
Use explicit trailing `[]` for reference markdown links to prevent
implicit links when references are added to documents.
PR-URL: #29808
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Copy file name to clipboardexpand all lines: doc/api/stream.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ total size of the internal write buffer is below the threshold set by
89
89
the size of the internal buffer reaches or exceeds the `highWaterMark`, `false`
90
90
will be returned.
91
91
92
-
A key goal of the `stream` API, particularly the [`stream.pipe()`] method,
92
+
A key goal of the `stream` API, particularly the [`stream.pipe()`][] method,
93
93
is to limit the buffering of data to acceptable levels such that sources and
94
94
destinations of differing speeds will not overwhelm the available memory.
95
95
@@ -682,7 +682,7 @@ from the stream.
682
682
683
683
Adding a [`'readable'`][] event handler automatically make the stream to
684
684
stop flowing, and the data to be consumed via
685
-
[`readable.read()`][stream-read]. If the [`'readable'`] event handler is
685
+
[`readable.read()`][stream-read]. If the [`'readable'`][] event handler is
686
686
removed, then the stream will start flowing again if there is a
687
687
[`'data'`][] event handler.
688
688
@@ -1653,10 +1653,10 @@ on the type of stream being created, as detailed in the chart below:
1653
1653
1654
1654
| Use-case | Class | Method(s) to implement |
1655
1655
| -------- | ----- | ---------------------- |
1656
-
| Reading only |[`Readable`]|<code>[_read()][stream-_read]</code>|
1657
-
| Writing only |[`Writable`]|<code>[_write()][stream-_write]</code>, <code>[_writev()][stream-_writev]</code>, <code>[_final()][stream-_final]</code>|
1658
-
| Reading and writing |[`Duplex`]|<code>[_read()][stream-_read]</code>, <code>[_write()][stream-_write]</code>, <code>[_writev()][stream-_writev]</code>, <code>[_final()][stream-_final]</code>|
1659
-
| Operate on written data, then read the result |[`Transform`]|<code>[_transform()][stream-_transform]</code>, <code>[_flush()][stream-_flush]</code>, <code>[_final()][stream-_final]</code>|
1656
+
| Reading only |[`Readable`][]|[`_read()`][stream-_read]|
1657
+
| Writing only |[`Writable`][]|[`_write()`][stream-_write], [`_writev()`][stream-_writev], [`_final()`][stream-_final]|
1658
+
| Reading and writing |[`Duplex`][]|[`_read()`][stream-_read], [`_write()`][stream-_write], [`_writev()`][stream-_writev], [`_final()`][stream-_final]|
1659
+
| Operate on written data, then read the result |[`Transform`][]|[`_transform()`][stream-_transform], [`_flush()`][stream-_flush], [`_final()`][stream-_final]|
1660
1660
1661
1661
The implementation code for a stream should *never* call the "public" methods
1662
1662
of a stream that are intended for use by consumers (as described in the
@@ -1881,7 +1881,7 @@ or write buffered data before a stream ends.
1881
1881
#### Errors While Writing
1882
1882
1883
1883
Errors occurring during the processing of the [`writable._write()`][],
1884
-
[`writable._writev()`][] and [`writable._final()`] methods must be propagated
1884
+
[`writable._writev()`][] and [`writable._final()`][] methods must be propagated
1885
1885
by invoking the callback and passing the error as the first argument.
1886
1886
Throwing an `Error` from within these methods or manually emitting an `'error'`
0 commit comments