diff options
author | 白一梓 <yunnysunny@gmail.com> | 2020-02-01 21:36:36 +0800 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2020-04-30 18:30:46 -0500 |
commit | e9518254d79645c3c060ea8d7f4898f8e12af9bb (patch) | |
tree | dfa54162fe09532e3215178576934b53b5834deb /doc/api | |
parent | 0413accc6b6e2b81784ab959b400236e4588b123 (diff) | |
download | node-new-e9518254d79645c3c060ea8d7f4898f8e12af9bb.tar.gz |
doc: fix the spelling error in stream.md
Change `64kb` to `64KB` in `stream.md`
PR-URL: https://github.com/nodejs/node/pull/31561
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/stream.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md index 134687530e..6229704eb9 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1442,7 +1442,7 @@ If the loop terminates with a `break` or a `throw`, the stream will be destroyed. In other terms, iterating over a stream will consume the stream fully. The stream will be read in chunks of size equal to the `highWaterMark` option. In the code example above, data will be in a single chunk if the file -has less then 64kb of data because no `highWaterMark` option is provided to +has less then 64KB of data because no `highWaterMark` option is provided to [`fs.createReadStream()`][]. ### Duplex and Transform Streams @@ -1830,7 +1830,7 @@ changes: * `options` {Object} * `highWaterMark` {number} Buffer level when [`stream.write()`][stream-write] starts returning `false`. **Default:** - `16384` (16kb), or `16` for `objectMode` streams. + `16384` (16KB), or `16` for `objectMode` streams. * `decodeStrings` {boolean} Whether to encode `string`s passed to [`stream.write()`][stream-write] to `Buffer`s (with the encoding specified in the [`stream.write()`][stream-write] call) before passing @@ -2112,7 +2112,7 @@ changes: * `options` {Object} * `highWaterMark` {number} The maximum [number of bytes][hwm-gotcha] to store in the internal buffer before ceasing to read from the underlying resource. - **Default:** `16384` (16kb), or `16` for `objectMode` streams. + **Default:** `16384` (16KB), or `16` for `objectMode` streams. * `encoding` {string} If specified, then buffers will be decoded to strings using the specified encoding. **Default:** `null`. * `objectMode` {boolean} Whether this stream should behave |