aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Paul Nodet <paul.nodet@gmail.com> 2023-10-06 18:26:42 +0800
committerGravatar GitHub <noreply@github.com> 2023-10-06 03:26:42 -0700
commit456d6be02228c2e755a70d89a5f9e24f751398ec (patch)
treea88bc738ea94804625ec6c59ba5dd880ec420dd4
parent16cf1fe5f3f643514098ea31f125244c6c4edbfd (diff)
downloadbun-456d6be02228c2e755a70d89a5f9e24f751398ec.tar.gz
bun-456d6be02228c2e755a70d89a5f9e24f751398ec.tar.zst
bun-456d6be02228c2e755a70d89a5f9e24f751398ec.zip
docs: `file.stream()` is not a promise (#6337)
-rw-r--r--docs/guides/read-file/stream.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/guides/read-file/stream.md b/docs/guides/read-file/stream.md
index ac4bd9e2f..bc54af2ce 100644
--- a/docs/guides/read-file/stream.md
+++ b/docs/guides/read-file/stream.md
@@ -8,7 +8,7 @@ The `Bun.file()` function accepts a path and returns a `BunFile` instance. The `
const path = "/path/to/package.json";
const file = Bun.file(path);
-const stream = await file.stream();
+const stream = file.stream();
```
---