diff options
author | Robin Wieruch <wrobin@gmx.net> | 2020-05-26 16:09:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 10:09:47 -0400 |
commit | 845bc443da6026903aefa7a6556ecc7c0de371fe (patch) | |
tree | 0e991008d7d487153c565d3697f96d940ee6c4e4 /std/http/server.ts | |
parent | 44477596eda3ca50ea6597d4af1fd809a01e2bdc (diff) |
improve docs (#5873)
Diffstat (limited to 'std/http/server.ts')
-rw-r--r-- | std/http/server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/http/server.ts b/std/http/server.ts index a372b39a5..787820a56 100644 --- a/std/http/server.ts +++ b/std/http/server.ts @@ -247,8 +247,8 @@ export type HTTPOptions = Omit<Deno.ListenOptions, "transport">; * * import { serve } from "https://deno.land/std/http/server.ts"; * const body = "Hello World\n"; - * const s = serve({ port: 8000 }); - * for await (const req of s) { + * const server = serve({ port: 8000 }); + * for await (const req of server) { * req.respond({ body }); * } */ |