From 2c0e1aa095664130ef2ca305e221f45b3cefba37 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Mon, 13 Feb 2023 12:46:03 +0900 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- doc/api/webstreams.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/webstreams.md b/doc/api/webstreams.md index 8ffe4702f6bb9e..54861089fc2190 100644 --- a/doc/api/webstreams.md +++ b/doc/api/webstreams.md @@ -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!');