summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/library/contextlib.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 793bd63f67..7dc5b2989f 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -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)