From 097e1136d0d202e13ca0127c9c726ce789acbbe4 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) (cherry picked from commit d73ac0eba992a33992210915739d73250bf6d38d) Co-authored-by: Kevin Mai-Husan Chia --- 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 993bd13fb03013..79f6b02d85e2e5 100644 --- a/Doc/library/asyncio-sync.rst +++ b/Doc/library/asyncio-sync.rst @@ -187,11 +187,11 @@ Condition cond = asyncio.Condition() # ... later - await lock.acquire() + await cond.acquire() try: await cond.wait() finally: - lock.release() + cond.release() .. coroutinemethod:: acquire()