]> granicus.if.org Git - python/commitdiff
Fix missing coroutine declaration in the asyncio documentation. (GH-5964)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 3 Mar 2018 21:22:49 +0000 (13:22 -0800)
committerGitHub <noreply@github.com>
Sat, 3 Mar 2018 21:22:49 +0000 (13:22 -0800)
(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)

Co-authored-by: Joongi Kim <me@daybreaker.info>
Doc/library/asyncio-task.rst

index 71dbe06c899f1845336a2891cbf0065a45f7173c..485e1b843d082d8d41b512b00335fae6078b0897 100644 (file)
@@ -682,7 +682,7 @@ Task functions
 
    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.