1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

docs(std/bytes): fix typo in readme example (#9119)

This commit is contained in:
Maxim Zhukov 2021-01-15 02:28:55 -06:00 committed by GitHub
parent ad21ac3115
commit 215ad88baa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ Copy bytes from one binary array to another.
```typescript ```typescript
import { copy } from "https://deno.land/std@$STD_VERSION/bytes/mod.ts"; import { copy } from "https://deno.land/std@$STD_VERSION/bytes/mod.ts";
const dst = new Uint8Array(4); const dest = new Uint8Array(4);
const src = Uint8Array.of(1, 2, 3, 4); const src = Uint8Array.of(1, 2, 3, 4);
const len = copy(src, dest); // returns len = 4 const len = copy(src, dest); // returns len = 4
``` ```