]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improve grammar of asynchronous iterator glossary entry (GH-8657)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 9 Aug 2018 16:20:58 +0000 (09:20 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Thu, 9 Aug 2018 16:20:58 +0000 (09:20 -0700)
(cherry picked from commit cf2c5e8e2867e41d34079b2e464bbbe653fb7981)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/glossary.rst

index 8d5bd5373bc83b2d74931246bcb3f4cc63b4ce90..12f88a9d736da920eb3d42f9c1ad353e6faa44db 100644 (file)
@@ -123,10 +123,10 @@ Glossary
       :meth:`__aiter__` method.  Introduced by :pep:`492`.
 
    asynchronous iterator
-      An object that implements :meth:`__aiter__` and :meth:`__anext__`
+      An object that implements the :meth:`__aiter__` and :meth:`__anext__`
       methods.  ``__anext__`` must return an :term:`awaitable` object.
-      :keyword:`async for` resolves awaitable returned from asynchronous
-      iterator's :meth:`__anext__` method until it raises
+      :keyword:`async for` resolves the awaitables returned by an asynchronous
+      iterator's :meth:`__anext__` method until it raises a
       :exc:`StopAsyncIteration` exception.  Introduced by :pep:`492`.
 
    attribute