aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar maor-benami <85426848+maor-benami@users.noreply.github.com> 2023-02-28 07:08:27 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-27 21:08:27 -0800
commit590219966edc9e79b34ab2c073ae34d14baa141a (patch)
treef0a769d6b3743874b5fe49ca09d3fdb4225f340b
parent0a340d1920175252954f782549704cc17bd5a1a3 (diff)
downloadbun-590219966edc9e79b34ab2c073ae34d14baa141a.tar.gz
bun-590219966edc9e79b34ab2c073ae34d14baa141a.tar.zst
bun-590219966edc9e79b34ab2c073ae34d14baa141a.zip
Update file-io.md (#2230)
should `notreal.type` reflect the overridden value?
-rw-r--r--docs/api/file-io.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api/file-io.md b/docs/api/file-io.md
index 713bee9b7..4c432300e 100644
--- a/docs/api/file-io.md
+++ b/docs/api/file-io.md
@@ -45,7 +45,7 @@ The default MIME type is `text/plain;charset=utf-8`, but it can be overridden by
```ts
const notreal = Bun.file("notreal.json", { type: "application/json" });
-notreal.type; // => "text/plain;charset=utf-8"
+notreal.type; // => "application/json;charset=utf-8"
```
For convenience, Bun exposes `stdin`, `stdout` and `stderr` as instances of `BunFile`.