mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore(docs): remove senseless await
(#14844)
This commit is contained in:
parent
3dd981e199
commit
41075b153a
1 changed files with 2 additions and 2 deletions
4
cli/dts/lib.deno.ns.d.ts
vendored
4
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -2853,7 +2853,7 @@ declare namespace Deno {
|
|||
* Services HTTP requests given a TCP or TLS socket.
|
||||
*
|
||||
* ```ts
|
||||
* const conn = await Deno.listen({ port: 80 });
|
||||
* const conn = Deno.listen({ port: 80 });
|
||||
* const httpConn = Deno.serveHttp(await conn.accept());
|
||||
* const e = await httpConn.nextRequest();
|
||||
* if (e) {
|
||||
|
@ -2905,7 +2905,7 @@ declare namespace Deno {
|
|||
* upgrade to be successful.
|
||||
*
|
||||
* ```ts
|
||||
* const conn = await Deno.listen({ port: 80 });
|
||||
* const conn = Deno.listen({ port: 80 });
|
||||
* const httpConn = Deno.serveHttp(await conn.accept());
|
||||
* const e = await httpConn.nextRequest();
|
||||
* if (e) {
|
||||
|
|
Loading…
Reference in a new issue