Skip to content

Commit 3ab3086

Browse files
y1d7ngRafaelGSS
authored andcommitted
doc: fix errors in Web Streams doc
PR-URL: #42862 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 1fbfee2 commit 3ab3086

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/api/webstreams.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ added: v16.5.0
206206
* `preventAbort` {boolean} When `true`, errors in this `ReadableStream`
207207
will not cause `transform.writable` to be aborted.
208208
* `preventCancel` {boolean} When `true`, errors in the destination
209-
`transform.writable` is not cause this `ReadableStream` to be
209+
`transform.writable` do not cause this `ReadableStream` to be
210210
canceled.
211211
* `preventClose` {boolean} When `true`, closing this `ReadableStream`
212-
will no cause `transform.writable` to be closed.
212+
does not cause `transform.writable` to be closed.
213213
* `signal` {AbortSignal} Allows the transfer of data to be canceled
214214
using an {AbortController}.
215215
* Returns: {ReadableStream} From `transform.readable`.
@@ -283,12 +283,11 @@ added: v16.5.0
283283
`ReadableStream`'s data will be written.
284284
* `options` {Object}
285285
* `preventAbort` {boolean} When `true`, errors in this `ReadableStream`
286-
will not cause `transform.writable` to be aborted.
287-
* `preventCancel` {boolean} When `true`, errors in the destination
288-
`transform.writable` is not cause this `ReadableStream` to be
289-
canceled.
286+
will not cause `destination` to be aborted.
287+
* `preventCancel` {boolean} When `true`, errors in the `destination`
288+
will not cause this `ReadableStream` to be canceled.
290289
* `preventClose` {boolean} When `true`, closing this `ReadableStream`
291-
will no cause `transform.writable` to be closed.
290+
does not cause `destination` to be closed.
292291
* `signal` {AbortSignal} Allows the transfer of data to be canceled
293292
using an {AbortController}.
294293
* Returns: A promise fulfilled with `undefined`
@@ -319,7 +318,7 @@ added: v16.5.0
319318
* `options` {Object}
320319
* `preventCancel` {boolean} When `true`, prevents the {ReadableStream}
321320
from being closed when the async iterator abruptly terminates.
322-
**Defaults**: `false`
321+
**Default**: `false`.
323322

324323
Creates and returns an async iterator usable for consuming this
325324
`ReadableStream`'s data.
@@ -461,7 +460,7 @@ changes:
461460
-->
462461

463462
The `ReadableStreamBYOBReader` is an alternative consumer for
464-
byte-oriented {ReadableStream}'s (those that are created with
463+
byte-oriented {ReadableStream}s (those that are created with
465464
`underlyingSource.type` set equal to `'bytes'` when the
466465
`ReadableStream` was created).
467466

0 commit comments

Comments
 (0)