From f8e4e3e380efc3c867d70c98cd3b55a525dd2d92 Mon Sep 17 00:00:00 2001 From: Ashish Kumar <34642693+ashishkujoy@users.noreply.github.com> Date: Thu, 8 Feb 2024 14:17:57 +0530 Subject: [PATCH] Removed usage of deprecated syntax of byte concat function --- data/byte-manipulation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/byte-manipulation.ts b/data/byte-manipulation.ts index ea8a168..5ff43d9 100644 --- a/data/byte-manipulation.ts +++ b/data/byte-manipulation.ts @@ -19,7 +19,7 @@ const c = new Uint8Array([4, 5]); // We can concatenate two byte arrays using the // concat method import { concat } from "$std/bytes/concat.ts"; -const d = concat(a, b); +const d = concat([a, b]); console.log(d); // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] // Sometimes we need to repeat certain bytes