diff options
author | Joongi Kim <me@daybreaker.info> | 2018-03-04 01:43:54 +0900 |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-03-03 18:43:54 +0200 |
commit | 13cfd57dcf58485d6242fd8118c6ea4b10e29aab (patch) | |
tree | aa0dd7370aef3f25f708fec6187541e9e7d04b9f /Doc | |
parent | b21d155f57d284aecf9092a9bd24258293965c2f (diff) | |
download | cpython3-13cfd57dcf58485d6242fd8118c6ea4b10e29aab.tar.gz |
Fix missing coroutine declaration in the asyncio documentation. (#5964)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-task.rst | 2 |
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. |