mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
7f2cdd36cf
commit
ffdd64dce3
1 file changed
+1
-1
@@ -1613,7 +1613,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!');
|
||||
|
||||
Reference in new issue
Block a user