Skip to content

Commit bd92cfe

Browse files
Fix missing coroutine declaration in the asyncio documentation. (GH-5964)
(cherry picked from commit 13cfd57) Co-authored-by: Joongi Kim <me@daybreaker.info>
1 parent fbdd075 commit bd92cfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/asyncio-task.rst

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

631631
This function is a :ref:`coroutine <coroutine>`.
632632

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

635635
Wait for a future, shielding it from cancellation.
636636

0 commit comments

Comments
 (0)