diff options
author | 2023-07-31 01:33:39 -0700 | |
---|---|---|
committer | 2023-07-31 01:33:39 -0700 | |
commit | aae92c76a695cb102e8a045d1aab6b9535546d7d (patch) | |
tree | 0fda9f0a12359736a68861ed076882097984d5ea /docs/guides/streams | |
parent | 9ecae59bbb1a302977afa94fd879a0c6f8d6195f (diff) | |
download | bun-aae92c76a695cb102e8a045d1aab6b9535546d7d.tar.gz bun-aae92c76a695cb102e8a045d1aab6b9535546d7d.tar.zst bun-aae92c76a695cb102e8a045d1aab6b9535546d7d.zip |
Fix incorrect function
Diffstat (limited to 'docs/guides/streams')
-rw-r--r-- | docs/guides/streams/to-string.md | 2 |
1 files changed, 1 insertions, 1 deletions
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); ``` --- |