[Python-checkins] cpython (2.7): minor grammar fixes (from docs at python.org)

georg.brandl python-checkins at python.org
Fri Oct 31 09:30:11 CET 2014


https://hg.python.org/cpython/rev/0f6dd5365370
changeset:   93305:0f6dd5365370
branch:      2.7
parent:      93296:d565dbf576f9
user:        Georg Brandl <georg at python.org>
date:        Fri Oct 31 09:29:38 2014 +0100
summary:
  minor grammar fixes (from docs at python.org)

files:
  Doc/tutorial/classes.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -826,7 +826,7 @@
 :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::
 
@@ -844,7 +844,7 @@
    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.

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list