Skip to content

Commit

Permalink
improve docs (#5873)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwieruch authored May 26, 2020
1 parent 4447759 commit 845bc44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/tools/debugger.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ This time let's try with local source file, create `server.ts`:

```ts
import { serve } from "https://deno.land/std@v0.50.0/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" });
}
```
Expand Down
4 changes: 2 additions & 2 deletions std/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
}
```
Expand Down
4 changes: 2 additions & 2 deletions std/http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
* }
*/
Expand Down

0 comments on commit 845bc44

Please sign in to comment.