]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
docs: fix missing `async` in example
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 26 Feb 2024 10:52:21 +0000 (11:52 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 26 Feb 2024 10:52:21 +0000 (11:52 +0100)
Close #740.

docs/advanced/pool.rst

index e62c292b42eb07b76efa37fb85a73cbaea8888e3..74fa4e3d29e3dd0d41ecc75d75d151fb0635bab7 100644 (file)
@@ -59,7 +59,7 @@ the methods requiring them::
         async with pool.connection() as conn:
             await conn.execute("SELECT something FROM somewhere ...")
 
-            with conn.cursor() as cur:
+            async with conn.cursor() as cur:
                 await cur.execute("SELECT something else...")