Skip to content

Commit ff9ef61

Browse files
daeyeonjuanarbol
authored andcommitted
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 bbbb446 commit ff9ef61

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
@@ -584,7 +584,7 @@ added: v11.4.0
584584
* {boolean}
585585

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

589589
##### `writable.writableAborted`
590590

@@ -1499,7 +1499,7 @@ changes:
14991499

15001500
* `chunk` {Buffer|Uint8Array|string|null|any} Chunk of data to unshift onto the
15011501
read queue. For streams not operating in object mode, `chunk` must be a
1502-
string, `Buffer`, `Uint8Array` or `null`. For object mode streams, `chunk`
1502+
string, `Buffer`, `Uint8Array`, or `null`. For object mode streams, `chunk`
15031503
may be any JavaScript value.
15041504
* `encoding` {string} Encoding of string chunks. Must be a valid
15051505
`Buffer` encoding, such as `'utf8'` or `'ascii'`.
@@ -2896,7 +2896,7 @@ added: v1.2.0
28962896

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

29022902
```js
@@ -3524,7 +3524,7 @@ changes:
35243524
* Returns: {boolean} `true` if additional chunks of data may continue to be
35253525
pushed; `false` otherwise.
35263526

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

42004200
Use of `readable.push('')` is not recommended.
42014201

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

0 commit comments

Comments
 (0)