Skip to content

Commit 16df038

Browse files
y1d7ngjuanarbol
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 6328b2b commit 16df038

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
@@ -210,10 +210,10 @@ added: v16.5.0
210210
* `preventAbort` {boolean} When `true`, errors in this `ReadableStream`
211211
will not cause `transform.writable` to be aborted.
212212
* `preventCancel` {boolean} When `true`, errors in the destination
213-
`transform.writable` is not cause this `ReadableStream` to be
213+
`transform.writable` do not cause this `ReadableStream` to be
214214
canceled.
215215
* `preventClose` {boolean} When `true`, closing this `ReadableStream`
216-
will no cause `transform.writable` to be closed.
216+
does not cause `transform.writable` to be closed.
217217
* `signal` {AbortSignal} Allows the transfer of data to be canceled
218218
using an {AbortController}.
219219
* Returns: {ReadableStream} From `transform.readable`.
@@ -287,12 +287,11 @@ added: v16.5.0
287287
`ReadableStream`'s data will be written.
288288
* `options` {Object}
289289
* `preventAbort` {boolean} When `true`, errors in this `ReadableStream`
290-
will not cause `transform.writable` to be aborted.
291-
* `preventCancel` {boolean} When `true`, errors in the destination
292-
`transform.writable` is not cause this `ReadableStream` to be
293-
canceled.
290+
will not cause `destination` to be aborted.
291+
* `preventCancel` {boolean} When `true`, errors in the `destination`
292+
will not cause this `ReadableStream` to be canceled.
294293
* `preventClose` {boolean} When `true`, closing this `ReadableStream`
295-
will no cause `transform.writable` to be closed.
294+
does not cause `destination` to be closed.
296295
* `signal` {AbortSignal} Allows the transfer of data to be canceled
297296
using an {AbortController}.
298297
* Returns: A promise fulfilled with `undefined`
@@ -323,7 +322,7 @@ added: v16.5.0
323322
* `options` {Object}
324323
* `preventCancel` {boolean} When `true`, prevents the {ReadableStream}
325324
from being closed when the async iterator abruptly terminates.
326-
**Defaults**: `false`
325+
**Default**: `false`.
327326

328327
Creates and returns an async iterator usable for consuming this
329328
`ReadableStream`'s data.
@@ -457,7 +456,7 @@ added: v16.5.0
457456
-->
458457

459458
The `ReadableStreamBYOBReader` is an alternative consumer for
460-
byte-oriented {ReadableStream}'s (those that are created with
459+
byte-oriented {ReadableStream}s (those that are created with
461460
`underlyingSource.type` set equal to `'bytes'` when the
462461
`ReadableStream` was created).
463462

0 commit comments

Comments
 (0)