Skip to content

Commit cc1c3a7

Browse files
committed
stream: fix typo on comment and change name of parameter in the documentation file
1 parent a93a8d8 commit cc1c3a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,7 @@ added:
28072807

28082808
Returns whether the stream is readable.
28092809

2810-
### `stream.Readable.toWeb(streamReadable[, strategy])`
2810+
### `stream.Readable.toWeb(streamReadable[, options])`
28112811

28122812
<!-- YAML
28132813
added: v17.0.0

lib/internal/webstreams/adapters.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function newReadableStreamFromStreamReadable(streamReadable, options = kEmptyObj
391391
// and no size algorithm. Using a ByteLengthQueuingStrategy here
392392
// is unnecessary.
393393

394-
// If there is an strategy available, use it. Otherwise, fallback to default behavior
394+
// If there is a strategy available, use it. Otherwise, fallback to default behavior
395395
const queuingStrategy = options?.strategy;
396396

397397
const strategy = queuingStrategy ?

0 commit comments

Comments
 (0)