Commit 830f26d1 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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

(cherry picked from commit d6499103)
Co-authored-by: default avatarAndrés Delfino <adelfino@gmail.com>
parent ffbce43c
......@@ -522,7 +522,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::
......@@ -701,7 +701,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment