Skip to content

Commit

Permalink
docs: use Deno.serve in README (denoland#19805)
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Jul 13, 2023
1 parent 2f4b734 commit c5ddb5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ deno run https://deno.land/std/examples/welcome.ts
Or [setup a simple HTTP server](https://examples.deno.land/http-server):

```ts
import { serve } from "https://deno.land/[email protected]/http/server.ts";

serve((_req) => new Response("Hello, World!"));
Deno.serve((_req) => new Response("Hello, World!"));
```

[More examples](https://examples.deno.land/).
Expand Down

0 comments on commit c5ddb5f

Please sign in to comment.