Skip to content

Commit

Permalink
Fix a code snippet typo in asyncio docs (python#108427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumeng committed Aug 24, 2023
1 parent b780882 commit 7f31676
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 @@ -592,7 +592,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 7f31676

Please sign in to comment.