Skip to content

Commit 6ba2b34

Browse files
committed
doc: fix Type notation in webstreams
Replace `type` with `Type: {Promise}`. Plus, remove duplicated verb(`Creates and creates` -> `Creates`) in description.
1 parent 27cadf5 commit 6ba2b34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/webstreams.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,8 @@ added: v16.5.0
895895
896896
* Returns: {WritableStreamDefaultWriter}
897897
898-
Creates and creates a new writer instance that can be used to write
899-
data into the `WritableStream`.
898+
Creates a new writer instance that can be used to write data into
899+
the `WritableStream`.
900900
901901
#### `writableStream.locked`
902902
@@ -995,8 +995,8 @@ The amount of data required to fill the {WritableStream}'s queue.
995995
added: v16.5.0
996996
-->
997997
998-
* type: A promise that is fulfilled with `undefined` when the
999-
writer is ready to be used.
998+
* Type: {Promise} Fulfilled with `undefined` when the writer is ready
999+
to be used.
10001000
10011001
#### `writableStreamDefaultWriter.releaseLock()`
10021002

0 commit comments

Comments
 (0)