commit | d73ac0eba992a33992210915739d73250bf6d38d | [log] [tgz] |
---|---|---|
author | Kevin Mai-Husan Chia <mhchia@users.noreply.github.com> | Thu Feb 14 10:39:25 2019 +0800 |
committer | Lisa Roach <lisaroach14@gmail.com> | Wed Feb 13 18:39:25 2019 -0800 |
tree | 09f48627f6870f91f8f7350b3297db64ba84f679 | |
parent | 2bdd5858e3f89555c8de73a0f307d63536129dbd [diff] [blame] |
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 18b5629..18da188 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst
@@ -180,11 +180,11 @@ cond = asyncio.Condition() # ... later - await lock.acquire() + await cond.acquire() try: await cond.wait() finally: - lock.release() + cond.release() .. coroutinemethod:: acquire()