Skip to content

Commit 032107a

Browse files
deokjinkimRafaelGSS
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 bfaa0fb commit 032107a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/webstreams.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ added: v16.5.0
895895
896896
* Returns: {WritableStreamDefaultWriter}
897897
898-
Creates and creates a new writer instance that can be used to write
898+
Creates and returns a new writer instance that can be used to write
899899
data into the `WritableStream`.
900900
901901
#### `writableStream.locked`
@@ -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)