Skip to content

Commit

Permalink
[3.11] Fix a code snippet typo in asyncio docs (GH-108427) (#111244)
Browse files Browse the repository at this point in the history
Co-authored-by: A <5249513+Dumeng@users.noreply.github.com>
  • Loading branch information
miss-islington and Dumeng committed Oct 24, 2023
1 parent bf41dcd commit e35393f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/asyncio-task.rst
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,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
Expand Down

0 comments on commit e35393f

Please sign in to comment.