Correct grammar mistakes in string.rst. (GH-9752)

This commit is contained in:
Andrés Delfino 2018-11-07 14:24:56 -03:00 committed by Serhiy Storchaka
parent ca03f3b93e
commit d64991031e
1 changed files with 2 additions and 2 deletions

View File

@ -551,7 +551,7 @@ addition of the ``{}`` and with ``:`` used instead of ``%``.
For example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``.
The new format syntax also supports new and different options, shown in the
follow examples.
following examples.
Accessing arguments by position::
@ -739,7 +739,7 @@ these rules. The methods of :class:`Template` are:
simply return ``$`` instead of raising :exc:`ValueError`.
While other exceptions may still occur, this method is called "safe"
because substitutions always tries to return a usable string instead of
because it always tries to return a usable string instead of
raising an exception. In another sense, :meth:`safe_substitute` may be
anything other than safe, since it will silently ignore malformed
templates containing dangling delimiters, unmatched braces, or