From: Kevin Mai-Husan Chia Date: Thu, 14 Feb 2019 02:39:25 +0000 (+0800) Subject: Fix typo: equivalent code of `async with cond` (GH-11681) X-Git-Tag: v3.8.0a2~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d73ac0eba992a33992210915739d73250bf6d38d;p=thirdparty%2FPython%2Fcpython.git Fix typo: equivalent code of `async with cond` (GH-11681) --- diff --git a/Doc/library/asyncio-sync.rst b/Doc/library/asyncio-sync.rst index 18b562970436..18da18873dbf 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()