Commit 416cbce2 authored by Alexander Vasin's avatar Alexander Vasin Committed by Mariatta

Fixed typo with asynccontextmanager code example (GH-8845)

`yield conn`, instead of just `yield`.
parent 09efe49c
......@@ -116,7 +116,7 @@ Functions and classes provided:
async def get_connection():
conn = await acquire_db_connection()
try:
yield
yield conn
finally:
await release_db_connection(conn)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment