]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Typo in async with example fixed
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 19 Nov 2020 23:23:19 +0000 (23:23 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 19 Nov 2020 23:23:19 +0000 (23:23 +0000)
docs/usage.rst

index 38adbc507042b2432ce21c67dc8e13f3afad9abd..e4c56bdd0403c6523aa13c0ea9172af5099dbd3c 100644 (file)
@@ -127,7 +127,7 @@ it in two steps instead, as in
     aconn = await psycopg3.AsyncConnection.connect():
     async with aconn:
         cur = await aconn.cursor()
-        async with as cur:
+        async with cur:
             await cur.execute(...)
 
 which can be condensed as: