Skip to content

Commit 5ec2c99

Browse files
authoredSep 14, 2022
doc: use serial comma in stream docs
Signed-off-by: Daeyeon Jeong [email protected] PR-URL: #44609 Reviewed-By: theanarkh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Harshitha K P <[email protected]>
1 parent ac8ab0c commit 5ec2c99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎doc/api/stream.md

+5-5
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

@@ -1547,7 +1547,7 @@ changes:
15471547

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

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

31413141
```js
@@ -3763,7 +3763,7 @@ changes:
37633763
* Returns: {boolean} `true` if additional chunks of data may continue to be
37643764
pushed; `false` otherwise.
37653765

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

44394439
Use of `readable.push('')` is not recommended.
44404440

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

0 commit comments

Comments
 (0)
Please sign in to comment.