From 2ff788f4633ffbcc2b59a12f25e51f423ed2abcb Mon Sep 17 00:00:00 2001 From: Max Kayander <34479008+mkayander@users.noreply.github.com> Date: Mon, 4 Dec 2023 20:43:42 +0300 Subject: [PATCH] Update typedarray-to-string.md (#7453) --- docs/guides/binary/typedarray-to-string.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/binary/typedarray-to-string.md b/docs/guides/binary/typedarray-to-string.md index 9c5703420c..1093f9fe21 100644 --- a/docs/guides/binary/typedarray-to-string.md +++ b/docs/guides/binary/typedarray-to-string.md @@ -7,7 +7,7 @@ Bun implements the Web-standard [`TextDecoder`](https://developer.mozilla.org/en ```ts const arr = new Uint8Array([104, 101, 108, 108, 111]); const decoder = new TextDecoder(); -const str = decoder.decode(buf); +const str = decoder.decode(arr); // => "hello" ```