Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)

This commit is contained in:
Miss Islington (bot) 2019-10-11 10:27:16 -07:00 committed by Lisa Roach
parent dd63ee26a8
commit 1845997dd9
1 changed files with 2 additions and 2 deletions

View File

@ -187,11 +187,11 @@ Condition
cond = asyncio.Condition()
# ... later
await lock.acquire()
await cond.acquire()
try:
await cond.wait()
finally:
lock.release()
cond.release()
.. coroutinemethod:: acquire()