summaryrefslogtreecommitdiff
path: root/std/http/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/README.md')
-rw-r--r--std/http/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/http/README.md b/std/http/README.md
index 4e30a3a56..0f97fd0c0 100644
--- a/std/http/README.md
+++ b/std/http/README.md
@@ -2,9 +2,9 @@
```typescript
import { serve } from "https://deno.land/std/http/server.ts";
-const s = serve({ port: 8000 });
+const server = serve({ port: 8000 });
console.log("http://localhost:8000/");
-for await (const req of s) {
+for await (const req of server) {
req.respond({ body: "Hello World\n" });
}
```