Skip to content

Commit

Permalink
stream: fix typo on comment and change name of parameter in the docum…
Browse files Browse the repository at this point in the history
…entation file
  • Loading branch information
Warkanlock committed Jun 21, 2022
1 parent a93a8d8 commit cc1c3a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2807,7 +2807,7 @@ added:

Returns whether the stream is readable.

### `stream.Readable.toWeb(streamReadable[, strategy])`
### `stream.Readable.toWeb(streamReadable[, options])`

<!-- YAML
added: v17.0.0
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/webstreams/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function newReadableStreamFromStreamReadable(streamReadable, options = kEmptyObj
// and no size algorithm. Using a ByteLengthQueuingStrategy here
// is unnecessary.

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

const strategy = queuingStrategy ?
Expand Down

0 comments on commit cc1c3a7

Please sign in to comment.