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:
parent
ad21ac3115
commit
215ad88baa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue