1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -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 GitHub
parent 2f4b73410a
commit c5ddb5f205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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/).