summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2014-01-20 16:13:31 (GMT)
committerEli Bendersky <eliben@gmail.com>2014-01-20 16:13:31 (GMT)
commit679688e70d29fad62bb7a07e682ef6966c489445 (patch)
tree2391ea5f3bc09c73663c21c26dcaeb9e8b2034ba /Doc
parent3245e79b823d9060b03666148a1b937b118259cb (diff)
downloadcpython-679688e70d29fad62bb7a07e682ef6966c489445.zip
cpython-679688e70d29fad62bb7a07e682ef6966c489445.tar.gz
cpython-679688e70d29fad62bb7a07e682ef6966c489445.tar.bz2
Fix grammar and add markup
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-dev.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index 47448ee..74bbc28 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -4,7 +4,7 @@ Develop with asyncio
====================
Asynchronous programming is different than classical "sequential" programming.
-This page lists common traps and explain how to avoid them.
+This page lists common traps and explains how to avoid them.
Handle correctly blocking functions
@@ -131,14 +131,15 @@ function::
See also the :meth:`Future.exception` method.
-Chain correctly coroutines
+Chain coroutines correctly
--------------------------
When a coroutine function calls other coroutine functions and tasks, they
-should chained explicitly with ``yield from``. Otherwise, the execution is no
-more guaranteed to be sequential.
+should be chained explicitly with ``yield from``. Otherwise, the execution is
+not guaranteed to be sequential.
-Example with different bugs using sleep to simulate slow operations::
+Example with different bugs using :func:`asyncio.sleep` to simulate slow
+operations::
import asyncio