From 9811a2b53edcf201f9e9ca66b9fd650fa1bab624 Mon Sep 17 00:00:00 2001 From: Michael H Date: Thu, 19 Jun 2025 05:01:30 +1000 Subject: [PATCH] docs: minor fix to Bun.deflateSync (#20466) --- docs/api/utils.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/utils.md b/docs/api/utils.md index 979e406851..2d04163c72 100644 --- a/docs/api/utils.md +++ b/docs/api/utils.md @@ -582,11 +582,11 @@ Compresses a `Uint8Array` using zlib's DEFLATE algorithm. const buf = Buffer.from("hello".repeat(100)); const compressed = Bun.deflateSync(buf); -buf; // => Uint8Array(25) -compressed; // => Uint8Array(10) +buf; // => Buffer(500) +compressed; // => Uint8Array(12) ``` -The second argument supports the same set of configuration options as [`Bun.gzipSync`](#bungzipsync). +The second argument supports the same set of configuration options as [`Bun.gzipSync`](#bun-gzipsync). ## `Bun.inflateSync()`