Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c16897c

Browse files
miss-islingtonned-deily
authored andcommitted
Fix typo: equivalent code of async with cond (GH-11681) (GH-16720)
1 parent b6029f9 commit c16897c

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)