Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17ab8f0

Browse files
authored
Fix a typo in asyncio docs (#5721)
1 parent 9f42232 commit 17ab8f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ Server
10431043
async def main(host, port):
10441044
srv = await asyncio.start_server(
10451045
client_connected, host, port)
1046-
await loop.serve_forever()
1046+
await srv.serve_forever()
10471047

10481048
asyncio.run(main('127.0.0.1', 0))
10491049

0 commit comments

Comments
 (0)