Skip to content

Fix typos in async/await documentation #2116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 9, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/source/kinds_of_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ decorator to convert a generator into a coroutine.
Note that we set the ``YieldType`` of the generator to be ``Any`` in the
following example. This is because the exact yield type is an implementation
detail of the coroutine runner (e.g. the ``asyncio`` event loop) and your
couroutine shouldn't have to know or care about what precisely that type is.
coroutine shouldn't have to know or care about what precisely that type is.

.. code-block:: python

Expand Down Expand Up @@ -852,7 +852,7 @@ will be a value of type ``Awaitable[T]``.
yield
return "placeholder"

You may also optionally choose to create a subclass of ``Awaitable`` instead:
You may also choose to create a subclass of ``Awaitable`` instead:

.. code-block:: python

Expand All @@ -870,7 +870,7 @@ You may also optionally choose to create a subclass of ``Awaitable`` instead:
yield from asyncio.sleep(0.1)
return "Blastoff!"

def countdown_3(tag: str, count: int) -> Awaitable[None]:
def countdown_3(tag: str, count: int) -> Awaitable[str]:
return MyAwaitable(tag, count)

loop = asyncio.get_event_loop()
Expand Down