diff options
-rw-r--r-- | docs/api/binary-data.md | 2 | ||||
-rw-r--r-- | docs/guides/streams/to-string.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/binary-data.md b/docs/api/binary-data.md index 71b02338f..77a54a762 100644 --- a/docs/api/binary-data.md +++ b/docs/api/binary-data.md @@ -927,7 +927,7 @@ Buffer.from(Bun.readableStreamToArrayBuffer(stream)); new Response(stream).text(); // with Bun function -await Bun.readableStreamToString(stream); +await Bun.readableStreamToText(stream); ``` #### To `number[]` 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); ``` --- |