Skip to content

Commit bb8d018

Browse files
committed
Fix misnaming of async generator.
1 parent db4ac35 commit bb8d018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ The only way to yield (or effectively cede control) from a coroutine is to
326326
That might sound odd to you. Frankly, it was to me too. You might be thinking:
327327

328328
1. What about a ``yield`` directly within the coroutine? The coroutine becomes
329-
a generator-coroutine (or async generator), a different beast entirely.
329+
an async generator, a different beast entirely.
330330

331331
2. What about a ``yield from`` within the coroutine to a function that yields
332-
(that is, plain generator)?
332+
(that is, a plain generator)?
333333
``SyntaxError: yield from not allowed in a coroutine.``
334334
This was intentionally designed for the sake of simplicity -- mandating only
335335
one way of using coroutines. Originally ``yield`` was actually barred as well,

0 commit comments

Comments
 (0)