mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Fix incorrect function
This commit is contained in:
@@ -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[]`
|
||||
|
||||
@@ -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);
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user