From 456d6be02228c2e755a70d89a5f9e24f751398ec Mon Sep 17 00:00:00 2001 From: Paul Nodet Date: Fri, 6 Oct 2023 18:26:42 +0800 Subject: docs: `file.stream()` is not a promise (#6337) --- docs/guides/read-file/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/guides/read-file/stream.md') 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(); ``` --- -- cgit v1.2.3