Skip to content

Commit b622426

Browse files
Michael0x2agvanrossum
authored andcommitted
Fix typos in async/await documentation (#2116)
1 parent ee28565 commit b622426

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/kinds_of_types.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ decorator to convert a generator into a coroutine.
797797
Note that we set the ``YieldType`` of the generator to be ``Any`` in the
798798
following example. This is because the exact yield type is an implementation
799799
detail of the coroutine runner (e.g. the ``asyncio`` event loop) and your
800-
couroutine shouldn't have to know or care about what precisely that type is.
800+
coroutine shouldn't have to know or care about what precisely that type is.
801801

802802
.. code-block:: python
803803
@@ -852,7 +852,7 @@ will be a value of type ``Awaitable[T]``.
852852
yield
853853
return "placeholder"
854854
855-
You may also optionally choose to create a subclass of ``Awaitable`` instead:
855+
You may also choose to create a subclass of ``Awaitable`` instead:
856856

857857
.. code-block:: python
858858
@@ -870,7 +870,7 @@ You may also optionally choose to create a subclass of ``Awaitable`` instead:
870870
yield from asyncio.sleep(0.1)
871871
return "Blastoff!"
872872
873-
def countdown_3(tag: str, count: int) -> Awaitable[None]:
873+
def countdown_3(tag: str, count: int) -> Awaitable[str]:
874874
return MyAwaitable(tag, count)
875875
876876
loop = asyncio.get_event_loop()

0 commit comments

Comments
 (0)