summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-10-24 06:37:41 (GMT)
committerGitHub <noreply@github.com>2023-10-24 06:37:41 (GMT)
commitb622c2dcbe59c5ff579ee443244080f2f45168a5 (patch)
tree7f315d949136a09a54d080aa90ee4661116e1d79
parent38578dd665a0fd88b768d8d7c080fa404cc57923 (diff)
downloadcpython-b622c2dcbe59c5ff579ee443244080f2f45168a5.zip
cpython-b622c2dcbe59c5ff579ee443244080f2f45168a5.tar.gz
cpython-b622c2dcbe59c5ff579ee443244080f2f45168a5.tar.bz2
[3.12] Fix a code snippet typo in asyncio docs (GH-108427) (#111245)
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
-rw-r--r--Doc/library/asyncio-task.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index a3ea050..eb9db37 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -589,7 +589,7 @@ Shielding From Cancellation
is equivalent to::
- res = await something()
+ res = await shield(something())
*except* that if the coroutine containing it is cancelled, the
Task running in ``something()`` is not cancelled. From the point