diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-11 17:27:16 (GMT) |
---|---|---|
committer | Lisa Roach <lisaroach14@gmail.com> | 2019-10-11 17:27:16 (GMT) |
commit | 1845997dd9328a79da6395a0c23077c42102e1b0 (patch) | |
tree | 2429359a569a8e8b343fa046e5a493136494d121 | |
parent | dd63ee26a8284051b916a4ffd3a59e3d26aaec00 (diff) | |
download | cpython-1845997dd9328a79da6395a0c23077c42102e1b0.zip cpython-1845997dd9328a79da6395a0c23077c42102e1b0.tar.gz cpython-1845997dd9328a79da6395a0c23077c42102e1b0.tar.bz2 |
Fix typo: equivalent code of `async with cond` (GH-11681) (GH-16720)
-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 993bd13..79f6b02 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() |