diff options
author | 迷渡 <justjavac@gmail.com> | 2018-11-14 15:36:48 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-14 00:18:41 -0800 |
commit | fbaa40f6dcf67bf1113f3d4d8f600d2f73e01414 (patch) | |
tree | 38127a01f3a45727c782ae7bab9289d5f3b7dedd | |
parent | b1579460ced238820c9d3e3d8343d17a8c4b4e25 (diff) |
fix code sample in Docs
-rw-r--r-- | Docs.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |