Skip to content

Commit 55171d8

Browse files
deokjinkimtargos
authored andcommitted
doc: fix Type notation in webstreams
Replace `type` with `Type: {Promise}`. Plus, fix incorrect verb(`creates` -> `returns`) in description. PR-URL: #49121 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 79c0497 commit 55171d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/webstreams.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ added: v16.5.0
850850
851851
* Returns: {WritableStreamDefaultWriter}
852852
853-
Creates and creates a new writer instance that can be used to write
853+
Creates and returns a new writer instance that can be used to write
854854
data into the `WritableStream`.
855855
856856
#### `writableStream.locked`
@@ -950,8 +950,8 @@ The amount of data required to fill the {WritableStream}'s queue.
950950
added: v16.5.0
951951
-->
952952
953-
* type: A promise that is fulfilled with `undefined` when the
954-
writer is ready to be used.
953+
* Type: {Promise} Fulfilled with `undefined` when the writer is ready
954+
to be used.
955955
956956
#### `writableStreamDefaultWriter.releaseLock()`
957957

0 commit comments

Comments
 (0)