[Python-checkins] Fix a typo in asyncio docs (GH-5721)
Miss Islington (bot)
webhook-mailer at python.org
Sat Feb 17 13:02:49 EST 2018
https://github.com/python/cpython/commit/aeb5d73b0d29a8c14732dc796425ab53114bd0c3
commit: aeb5d73b0d29a8c14732dc796425ab53114bd0c3
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-02-17T10:02:46-08:00
summary:
Fix a typo in asyncio docs (GH-5721)
(cherry picked from commit 17ab8f0e8e2b2f66d11fbb95aa9936544a5e1a9a)
Co-authored-by: Andrew Svetlov <andrew.svetlov at gmail.com>
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