]> 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:23:31 +0000 (13:23 -0800)
committerGitHub <noreply@github.com>
Sat, 3 Mar 2018 21:23:31 +0000 (13:23 -0800)
(cherry picked from commit 13cfd57dcf58485d6242fd8118c6ea4b10e29aab)

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

index cc8fffb0659f24743ca96d05ebea2ec7f2b5bf47..5b801aaf8ecc01bcdc568a9cc31b0ffd5d030cd4 100644 (file)
@@ -630,7 +630,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.