Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Removed usage of deprecated syntax of byte concat function
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkujoy authored Feb 8, 2024
1 parent d3e3d18 commit f8e4e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/byte-manipulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8e4e3e

Please sign in to comment.