Skip to content

Commit 7c5edb6

Browse files
benjaminws1st1
authored andcommitted
Typo in docstring
- poll vs pool
1 parent 1c08a7b commit 7c5edb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asyncpg/pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,15 @@ def create_pool(dsn=None, *,
271271
272272
async with asyncpg.create_pool(user='postgres',
273273
command_timeout=60) as pool:
274-
async with poll.acquire() as con:
274+
async with pool.acquire() as con:
275275
await con.fetch('SELECT 1')
276276
277277
Or directly with ``await``:
278278
279279
.. code-block:: python
280280
281281
pool = await asyncpg.create_pool(user='postgres', command_timeout=60)
282-
con = await poll.acquire()
282+
con = await pool.acquire()
283283
try:
284284
await con.fetch('SELECT 1')
285285
finally:

0 commit comments

Comments
 (0)