Skip to content

Commit ffdd64d

Browse files
deokjinkimMylesBorins
authored andcommitted
doc: remove unused functions from example of streamConsumers.text
json, blob, and buffer are imported, but these functions are not used for example of `streamConsumers.text`. PR-URL: #46581 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7f2cdd3 commit ffdd64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/webstreams.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ added: v16.7.0
16131613
UTF-8 encoded string.
16141614
16151615
```mjs
1616-
import { json, text, blob, buffer } from 'node:stream/consumers';
1616+
import { text } from 'node:stream/consumers';
16171617
import { Readable } from 'node:stream';
16181618

16191619
const readable = Readable.from('Hello world from consumers!');

0 commit comments

Comments
 (0)