From d73ac0eba992a33992210915739d73250bf6d38d Mon Sep 17 00:00:00 2001 From: Kevin Mai-Husan Chia Date: Thu, 14 Feb 2019 10:39:25 +0800 Subject: [PATCH] Fix typo: equivalent code of `async with cond` (GH-11681) --- Doc/library/asyncio-sync.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()