Skip to content

Commit 13cfd57

Browse files
achimnolasvetlov
authored andcommitted
Fix missing coroutine declaration in the asyncio documentation. (#5964)
1 parent b21d155 commit 13cfd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ Task functions
682682

683683
This function is a :ref:`coroutine <coroutine>`.
684684

685-
.. function:: shield(arg, \*, loop=None)
685+
.. coroutinefunction:: shield(arg, \*, loop=None)
686686

687687
Wait for a future, shielding it from cancellation.
688688

0 commit comments

Comments
 (0)