Fixed typo with asynccontextmanager code example (GH-8845)

`yield conn`, instead of just `yield`.
This commit is contained in:
Alexander Vasin 2018-08-25 05:38:11 +03:00 committed by Mariatta
parent 09efe49c07
commit 416cbce22d
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ Functions and classes provided:
async def get_connection(): async def get_connection():
conn = await acquire_db_connection() conn = await acquire_db_connection()
try: try:
yield yield conn
finally: finally:
await release_db_connection(conn) await release_db_connection(conn)