Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 073f11e

Browse filesBrowse files
daeyeonRafaelGSS
authored andcommitted
doc: use serial comma in stream docs
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #44609 Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com>
1 parent 0ccc172 commit 073f11e
Copy full SHA for 073f11e

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+5-5Lines changed: 5 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ added: v11.4.0
594594
* {boolean}
595595

596596
Is `true` if it is safe to call [`writable.write()`][stream-write], which means
597-
the stream has not been destroyed, errored or ended.
597+
the stream has not been destroyed, errored, or ended.
598598

599599
##### `writable.writableAborted`
600600

@@ -1545,7 +1545,7 @@ changes:
15451545

15461546
* `chunk` {Buffer|Uint8Array|string|null|any} Chunk of data to unshift onto the
15471547
read queue. For streams not operating in object mode, `chunk` must be a
1548-
string, `Buffer`, `Uint8Array` or `null`. For object mode streams, `chunk`
1548+
string, `Buffer`, `Uint8Array`, or `null`. For object mode streams, `chunk`
15491549
may be any JavaScript value.
15501550
* `encoding` {string} Encoding of string chunks. Must be a valid
15511551
`Buffer` encoding, such as `'utf8'` or `'ascii'`.
@@ -3113,7 +3113,7 @@ added: v1.2.0
31133113

31143114
For many simple cases, it is possible to create a stream without relying on
31153115
inheritance. This can be accomplished by directly creating instances of the
3116-
`stream.Writable`, `stream.Readable`, `stream.Duplex` or `stream.Transform`
3116+
`stream.Writable`, `stream.Readable`, `stream.Duplex`, or `stream.Transform`
31173117
objects and passing appropriate methods as constructor options.
31183118

31193119
```js
@@ -3741,7 +3741,7 @@ changes:
37413741
* Returns: {boolean} `true` if additional chunks of data may continue to be
37423742
pushed; `false` otherwise.
37433743

3744-
When `chunk` is a `Buffer`, `Uint8Array` or `string`, the `chunk` of data will
3744+
When `chunk` is a `Buffer`, `Uint8Array`, or `string`, the `chunk` of data will
37453745
be added to the internal queue for users of the stream to consume.
37463746
Passing `chunk` as `null` signals the end of the stream (EOF), after which no
37473747
more data can be written.
@@ -4416,7 +4416,7 @@ situations within Node.js where this is done, particularly in the
44164416

44174417
Use of `readable.push('')` is not recommended.
44184418

4419-
Pushing a zero-byte string, `Buffer` or `Uint8Array` to a stream that is not in
4419+
Pushing a zero-byte string, `Buffer`, or `Uint8Array` to a stream that is not in
44204420
object mode has an interesting side effect. Because it _is_ a call to
44214421
[`readable.push()`][stream-push], the call will end the reading process.
44224422
However, because the argument is an empty string, no data is added to the

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.