diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 18b56297043..18da18873db 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -180,11 +180,11 @@ Condition cond = asyncio.Condition() # ... later - await lock.acquire() + await cond.acquire() try: await cond.wait() finally: - lock.release() + cond.release() .. coroutinemethod:: acquire()