From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 Oct 2023 06:37:41 +0000 (+0200) Subject: [3.12] Fix a code snippet typo in asyncio docs (GH-108427) (#111245) X-Git-Tag: v3.12.1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b622c2dcbe59c5ff579ee443244080f2f45168a5;p=thirdparty%2FPython%2Fcpython.git [3.12] Fix a code snippet typo in asyncio docs (GH-108427) (#111245) Co-authored-by: A <5249513+Dumeng@users.noreply.github.com> --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index a3ea050c0713..eb9db371e672 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