1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00

docs: use Deno.serve in README (#19805)

This commit is contained in:
idanran 2023-07-13 10:15:49 +08:00 committed by Bartek Iwańczuk
parent ef06ed28d8
commit be9576ccc6
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -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/std@0.182.0/http/server.ts";
serve((_req) => new Response("Hello, World!"));
Deno.serve((_req) => new Response("Hello, World!"));
```
[More examples](https://examples.deno.land/).