]> granicus.if.org Git - python/commitdiff
#6505: fix typos.
authorGeorg Brandl <georg@python.org>
Sat, 18 Jul 2009 09:06:31 +0000 (09:06 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 18 Jul 2009 09:06:31 +0000 (09:06 +0000)
Doc/tutorial/inputoutput.rst

index b1bc522b187794b829ddc5f549f75bd5ab2309b9..bfbc9a62fdc51e75a2d812bd5e1bdd42272138c2 100644 (file)
@@ -148,9 +148,9 @@ Positional and keyword arguments can be arbitrarily combined::
    ...                                                    other='Georg')
    The story of Bill, Manfred, and Georg.
 
-An optional ``':'`` and format specifier can follow the field name. This also
+An optional ``':'`` and format specifier can follow the field name. This allows
 greater control over how the value is formatted.  The following example
-truncates the Pi to three places after the decimal.
+truncates Pi to three places after the decimal.
 
    >>> import math
    >>> print 'The value of PI is approximately {0:.3f}.'.format(math.pi)
@@ -204,8 +204,8 @@ operation. For example::
    The value of PI is approximately 3.142.
 
 Since :meth:`str.format` is quite new, a lot of Python code still uses the ``%``
-operator. However, because this old style of formatting will eventually removed
-from the language :meth:`str.format` should generally be used.
+operator. However, because this old style of formatting will eventually be
+removed from the language, :meth:`str.format` should generally be used.
 
 More information can be found in the :ref:`string-formatting` section.