]> granicus.if.org Git - python/commitdiff
Fix missing coroutine declaration in the asyncio documentation. (#5964)
authorJoongi Kim <me@daybreaker.info>
Sat, 3 Mar 2018 16:43:54 +0000 (01:43 +0900)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Sat, 3 Mar 2018 16:43:54 +0000 (18:43 +0200)
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.