1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

chore(docs): remove senseless await (#14844)

This commit is contained in:
Roj 2022-06-11 20:06:58 +03:00 committed by GitHub
parent 3dd981e199
commit 41075b153a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2853,7 +2853,7 @@ declare namespace Deno {
* Services HTTP requests given a TCP or TLS socket. * Services HTTP requests given a TCP or TLS socket.
* *
* ```ts * ```ts
* const conn = await Deno.listen({ port: 80 }); * const conn = Deno.listen({ port: 80 });
* const httpConn = Deno.serveHttp(await conn.accept()); * const httpConn = Deno.serveHttp(await conn.accept());
* const e = await httpConn.nextRequest(); * const e = await httpConn.nextRequest();
* if (e) { * if (e) {
@ -2905,7 +2905,7 @@ declare namespace Deno {
* upgrade to be successful. * upgrade to be successful.
* *
* ```ts * ```ts
* const conn = await Deno.listen({ port: 80 }); * const conn = Deno.listen({ port: 80 });
* const httpConn = Deno.serveHttp(await conn.accept()); * const httpConn = Deno.serveHttp(await conn.accept());
* const e = await httpConn.nextRequest(); * const e = await httpConn.nextRequest();
* if (e) { * if (e) {