diff options
author | Andrés Delfino <adelfino@gmail.com> | 2018-11-07 17:24:56 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-07 17:24:56 (GMT) |
commit | d64991031e4c86ce0331caac16770757511dd025 (patch) | |
tree | a58e157d0fe74de162afd6f01ace6c551e1ddf5d /Doc/library/string.rst | |
parent | ca03f3b93ee5c2943a2b8cbf9447f99f835ec672 (diff) | |
download | cpython-d64991031e4c86ce0331caac16770757511dd025.zip cpython-d64991031e4c86ce0331caac16770757511dd025.tar.gz cpython-d64991031e4c86ce0331caac16770757511dd025.tar.bz2 |
Correct grammar mistakes in string.rst. (GH-9752)
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r-- | Doc/library/string.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst index d0ef089..46b2bfc 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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 |