Skip to content

Commit

Permalink
minor grammar fixes (from docs@python.org)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Oct 31, 2014
1 parent 4433ff9 commit f0d2ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/tutorial/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ Generators
:term:`Generator`\s are a simple and powerful tool for creating iterators. They
are written like regular functions but use the :keyword:`yield` statement
whenever they want to return data. Each time :func:`next` is called on it, the
generator resumes where it left-off (it remembers all the data values and which
generator resumes where it left off (it remembers all the data values and which
statement was last executed). An example shows that generators can be trivially
easy to create::

Expand All @@ -887,7 +887,7 @@ easy to create::
o
g

Anything that can be done with generators can also be done with class based
Anything that can be done with generators can also be done with class-based
iterators as described in the previous section. What makes generators so
compact is that the :meth:`__iter__` and :meth:`~generator.__next__` methods
are created automatically.
Expand Down

0 comments on commit f0d2ed7

Please sign in to comment.