From d48ff53e4ec4cb49172e0e96ca9890446f971a0e Mon Sep 17 00:00:00 2001 From: Tom Sherman Date: Sun, 10 Sep 2023 14:06:25 +0200 Subject: docs: Update Bun.write(path, Response) example to be clear that it writes the body (#4802) --- docs/api/file-io.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/api') diff --git a/docs/api/file-io.md b/docs/api/file-io.md index e141c8b17..e6902cc6a 100644 --- a/docs/api/file-io.md +++ b/docs/api/file-io.md @@ -195,7 +195,7 @@ const input = Bun.file("input.txt"); await Bun.write(Bun.stdout, input); ``` -To write an HTTP response to disk: +To write the body of an HTTP response to disk: ```ts const response = await fetch("https://bun.sh"); -- cgit v1.2.3