0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix code sample in Docs

This commit is contained in:
迷渡 2018-11-14 15:36:48 +08:00 committed by Ryan Dahl
parent b1579460ce
commit fbaa40f6dc

View file

@ -66,7 +66,7 @@ The copy here is actually zero-copy. That is, it reads data from the socket and
writes it back to it without ever calling a memcpy() or similar.
```ts
import { listen, accept, copy } from "deno";
import { listen, copy } from "deno";
const listener = listen("tcp", ":8080");
while (true) {
const conn = await listener.accept();