Skip to content

Commit 7c8b0d2

Browse files
yunnysunnytargos
authored andcommitted
doc: fix the spelling error in stream.md
Change `64kb` to `64KB` in `stream.md` PR-URL: #31561 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Andrey Pechkurov <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]>
1 parent d7b13ab commit 7c8b0d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/stream.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ If the loop terminates with a `break` or a `throw`, the stream will be
14221422
destroyed. In other terms, iterating over a stream will consume the stream
14231423
fully. The stream will be read in chunks of size equal to the `highWaterMark`
14241424
option. In the code example above, data will be in a single chunk if the file
1425-
has less then 64kb of data because no `highWaterMark` option is provided to
1425+
has less then 64KB of data because no `highWaterMark` option is provided to
14261426
[`fs.createReadStream()`][].
14271427

14281428
### Duplex and Transform Streams
@@ -1750,7 +1750,7 @@ changes:
17501750
* `options` {Object}
17511751
* `highWaterMark` {number} Buffer level when
17521752
[`stream.write()`][stream-write] starts returning `false`. **Default:**
1753-
`16384` (16kb), or `16` for `objectMode` streams.
1753+
`16384` (16KB), or `16` for `objectMode` streams.
17541754
* `decodeStrings` {boolean} Whether to encode `string`s passed to
17551755
[`stream.write()`][stream-write] to `Buffer`s (with the encoding
17561756
specified in the [`stream.write()`][stream-write] call) before passing
@@ -2026,7 +2026,7 @@ changes:
20262026
* `options` {Object}
20272027
* `highWaterMark` {number} The maximum [number of bytes][hwm-gotcha] to store
20282028
in the internal buffer before ceasing to read from the underlying resource.
2029-
**Default:** `16384` (16kb), or `16` for `objectMode` streams.
2029+
**Default:** `16384` (16KB), or `16` for `objectMode` streams.
20302030
* `encoding` {string} If specified, then buffers will be decoded to
20312031
strings using the specified encoding. **Default:** `null`.
20322032
* `objectMode` {boolean} Whether this stream should behave

0 commit comments

Comments
 (0)