diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 993bd13fb03..79f6b02d85e 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -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()