]> granicus.if.org Git - python/commitdiff
Fix a typo in asyncio docs (#5721)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 17 Feb 2018 17:44:35 +0000 (19:44 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2018 17:44:35 +0000 (19:44 +0200)
Doc/library/asyncio-eventloop.rst

index a19c670d0f306821c6b7d95943a9c2d4a27bd009..3ee9939192c1795d934e91587a4c6c7b6645d38c 100644 (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))