Fix missing coroutine declaration in the asyncio documentation. (GH-5964)
(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)
Co-authored-by: Joongi Kim <me@daybreaker.info>
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 71dbe06..485e1b8 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -682,7 +682,7 @@
This function is a :ref:`coroutine <coroutine>`.
-.. function:: shield(arg, \*, loop=None)
+.. coroutinefunction:: shield(arg, \*, loop=None)
Wait for a future, shielding it from cancellation.