Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix typo in readableStream.locked description #41923

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/api/webstreams.md
Expand Up @@ -149,7 +149,7 @@ added: v16.5.0
{ReadableStream}.

The `readableStream.locked` property is `false` by default, and is
switch to `true` while there is an active reader consuming the
Comment on lines 151 to -152
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional nit: Use present tense and active voice instead.

Suggested change
The `readableStream.locked` property is `false` by default, and is
switch to `true` while there is an active reader consuming the
The `readableStream.locked` property is `false` by default, and
switches to `true` while there is an active reader consuming the

switched to `true` while there is an active reader consuming the
stream's data.

#### `readableStream.cancel([reason])`
Expand Down