diff options
author | Kevin Mai-Husan Chia <mhchia@users.noreply.github.com> | 2019-02-14 02:39:25 (GMT) |
---|---|---|
committer | Lisa Roach <lisaroach14@gmail.com> | 2019-02-14 02:39:25 (GMT) |
commit | d73ac0eba992a33992210915739d73250bf6d38d (patch) | |
tree | 09f48627f6870f91f8f7350b3297db64ba84f679 /Doc/library/asyncio-sync.rst | |
parent | 2bdd5858e3f89555c8de73a0f307d63536129dbd (diff) | |
download | cpython-d73ac0eba992a33992210915739d73250bf6d38d.zip cpython-d73ac0eba992a33992210915739d73250bf6d38d.tar.gz cpython-d73ac0eba992a33992210915739d73250bf6d38d.tar.bz2 |
Fix typo: equivalent code of `async with cond` (GH-11681)
Diffstat (limited to 'Doc/library/asyncio-sync.rst')
-rw-r--r-- | Doc/library/asyncio-sync.rst | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ Condition cond = asyncio.Condition() # ... later - await lock.acquire() + await cond.acquire() try: await cond.wait() finally: - lock.release() + cond.release() .. coroutinemethod:: acquire() |