Skip to content

Commit

Permalink
doc: remove unused functions from example of streamConsumers.text
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
deokjinkim authored and danielleadams committed Apr 3, 2023
1 parent abeee99 commit 2c0e1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/webstreams.md
Expand Up @@ -1611,7 +1611,7 @@ added: v16.7.0
UTF-8 encoded string.
```mjs
import { json, text, blob, buffer } from 'node:stream/consumers';
import { text } from 'node:stream/consumers';
import { Readable } from 'node:stream';

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

0 comments on commit 2c0e1aa

Please sign in to comment.