[Python-checkins] Fix a typo in asyncio docs (#5721)
Andrew Svetlov
webhook-mailer at python.org
Sat Feb 17 12:44:39 EST 2018
https://github.com/python/cpython/commit/17ab8f0e8e2b2f66d11fbb95aa9936544a5e1a9a
commit: 17ab8f0e8e2b2f66d11fbb95aa9936544a5e1a9a
branch: master
author: Andrew Svetlov <andrew.svetlov at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-02-17T19:44:35+02:00
summary:
Fix a typo in asyncio docs (#5721)
files:
M Doc/library/asyncio-eventloop.rst
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index a19c670d0f30..3ee9939192c1 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -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))
More information about the Python-checkins
mailing list