1
0
Fork 0
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:
sonota88 2020-07-19 04:06:42 +09:00 committed by GitHub
parent 071a6e284a
commit aebea6bd24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);