aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorJoongi Kim <me@daybreaker.info>2018-03-04 01:43:54 +0900
committerAndrew Svetlov <andrew.svetlov@gmail.com>2018-03-03 18:43:54 +0200
commit13cfd57dcf58485d6242fd8118c6ea4b10e29aab (patch)
treeaa0dd7370aef3f25f708fec6187541e9e7d04b9f /Doc
parentb21d155f57d284aecf9092a9bd24258293965c2f (diff)
downloadcpython3-13cfd57dcf58485d6242fd8118c6ea4b10e29aab.tar.gz
Fix missing coroutine declaration in the asyncio documentation. (#5964)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-task.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 71dbe06c89..485e1b843d 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -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.