Fix a typo in asyncio docs (#5721)

This commit is contained in:
Andrew Svetlov 2018-02-17 19:44:35 +02:00 committed by GitHub
parent 9f4223261f
commit 17ab8f0e8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1043,7 +1043,7 @@ Server
async def main(host, port):
srv = await asyncio.start_server(
client_connected, host, port)
await loop.serve_forever()
await srv.serve_forever()
asyncio.run(main('127.0.0.1', 0))