Skip to content

Commit 1845997

Browse files
miss-islingtonlisroach
authored andcommitted
Fix typo: equivalent code of async with cond (GH-11681) (GH-16720)
1 parent dd63ee2 commit 1845997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/asyncio-sync.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ Condition
187187
cond = asyncio.Condition()
188188

189189
# ... later
190-
await lock.acquire()
190+
await cond.acquire()
191191
try:
192192
await cond.wait()
193193
finally:
194-
lock.release()
194+
cond.release()
195195

196196
.. coroutinemethod:: acquire()
197197

0 commit comments

Comments
 (0)