docs: file.stream() is not a promise (#6337)

This commit is contained in:
Paul Nodet
2023-10-06 18:26:42 +08:00
committed by GitHub
parent 16cf1fe5f3
commit 456d6be022

View File

@@ -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();
```
---