From aae92c76a695cb102e8a045d1aab6b9535546d7d Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 31 Jul 2023 01:33:39 -0700 Subject: Fix incorrect function --- docs/guides/streams/to-string.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/guides/streams') diff --git a/docs/guides/streams/to-string.md b/docs/guides/streams/to-string.md index a5963ae14..309f45c52 100644 --- a/docs/guides/streams/to-string.md +++ b/docs/guides/streams/to-string.md @@ -6,7 +6,7 @@ Bun provides a number of convenience functions for reading the contents of a [`R ```ts const stream = new ReadableStream(); -const str = await Bun.readableStreamToString(stream); +const str = await Bun.readableStreamToText(stream); ``` --- -- cgit v1.2.3