diff --git a/http/server.ts b/http/server.ts index 79d83129d767..bc48d4628977 100644 --- a/http/server.ts +++ b/http/server.ts @@ -267,7 +267,7 @@ export function serve(addr: string | HTTPOptions): Server { * * const body = "Hello World\n"; * const options = { port: 8000 }; - * listenAndServeTLS(options, (req) => { + * listenAndServe(options, (req) => { * req.respond({ body }); * }); *