mirror of
https://github.com/denoland/deno.git
synced 2025-01-10 16:11:13 -05:00
doc(std/bytes): Fix wrong import in the example code (copyBytes) (#6787)
This commit is contained in:
parent
071a6e284a
commit
aebea6bd24
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ concat(new Uint8Array([1, 2]), new Uint8Array([3, 4])); // returns Uint8Array(4)
|
|||
Copy bytes from one binary array to another.
|
||||
|
||||
```typescript
|
||||
import { concat } from "https://deno.land/std/bytes/mod.ts";
|
||||
import { copyBytes } from "https://deno.land/std/bytes/mod.ts";
|
||||
|
||||
const dst = new Uint8Array(4);
|
||||
const src = Uint8Array.of(1, 2, 3, 4);
|
||||
|
|
Loading…
Reference in a new issue