Skip to content

Commit f0d2ed7

Browse files
committed
minor grammar fixes (from docs@python.org)
1 parent 4433ff9 commit f0d2ed7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/tutorial/classes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ Generators
869869
:term:`Generator`\s are a simple and powerful tool for creating iterators. They
870870
are written like regular functions but use the :keyword:`yield` statement
871871
whenever they want to return data. Each time :func:`next` is called on it, the
872-
generator resumes where it left-off (it remembers all the data values and which
872+
generator resumes where it left off (it remembers all the data values and which
873873
statement was last executed). An example shows that generators can be trivially
874874
easy to create::
875875

@@ -887,7 +887,7 @@ easy to create::
887887
o
888888
g
889889

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

0 commit comments

Comments
 (0)