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 ff9ef61

Browse filesBrowse files
daeyeonjuanarbol
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 bbbb446 commit ff9ef61
Copy full SHA for ff9ef61

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.