Fix incorrect function

This commit is contained in:
Jarred Sumner
2023-07-31 01:33:39 -07:00
parent 9ecae59bbb
commit aae92c76a6
2 changed files with 2 additions and 2 deletions

View File

@@ -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[]`

View File

@@ -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);
```
---