mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix a typo in asyncio docs (#5721)
This commit is contained in:
parent
9f4223261f
commit
17ab8f0e8e
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