]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix a code snippet typo in asyncio docs (GH-108427) (#111245)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Oct 2023 06:37:41 +0000 (08:37 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Oct 2023 06:37:41 +0000 (06:37 +0000)
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
Doc/library/asyncio-task.rst

index a3ea050c0713acde1b4f66b84e814271ca94861a..eb9db371e672e99308e19e70b031270875551694 100644 (file)
@@ -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