diff options
Diffstat (limited to 'docs/guides/read-file')
-rw-r--r-- | docs/guides/read-file/exists.md | 2 | ||||
-rw-r--r-- | docs/guides/read-file/stream.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/guides/read-file/exists.md b/docs/guides/read-file/exists.md index fd6cbbf9a..0359f5728 100644 --- a/docs/guides/read-file/exists.md +++ b/docs/guides/read-file/exists.md @@ -8,7 +8,7 @@ The `Bun.file()` function accepts a path and returns a `BunFile` instance. Use t const path = "/path/to/package.json"; const file = Bun.file(path); -file.exists(); // boolean; +await file.exists(); // boolean; ``` --- 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(); ``` --- |