]> granicus.if.org Git - python/commitdiff
Fix a typo in asyncio docs (GH-5721)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 17 Feb 2018 18:02:46 +0000 (10:02 -0800)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2018 18:02:46 +0000 (10:02 -0800)
(cherry picked from commit 17ab8f0e8e2b2f66d11fbb95aa9936544a5e1a9a)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
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))