mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
Fix a typo in asyncio docs (GH-5721)
(cherry picked from commit 17ab8f0e8e
)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
afb5e55836
commit
aeb5d73b0d
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ Server
|
||||||
async def main(host, port):
|
async def main(host, port):
|
||||||
srv = await asyncio.start_server(
|
srv = await asyncio.start_server(
|
||||||
client_connected, host, port)
|
client_connected, host, port)
|
||||||
await loop.serve_forever()
|
await srv.serve_forever()
|
||||||
|
|
||||||
asyncio.run(main('127.0.0.1', 0))
|
asyncio.run(main('127.0.0.1', 0))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue