diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-07 09:55:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 09:55:07 -0800 |
commit | 830f26d11e87505f116ebfd1c1a9881c18ede8ab (patch) | |
tree | 8c0e70939dd68d941c9586d1bd5f71774623eb3a /Doc | |
parent | ffbce43c1aa457b5976665eb2e47771198c7af06 (diff) | |
download | cpython-git-830f26d11e87505f116ebfd1c1a9881c18ede8ab.tar.gz |
Correct grammar mistakes in string.rst. (GH-9752)
(cherry picked from commit d64991031e4c86ce0331caac16770757511dd025)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc')
-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 f8d41f9d67..7eedc86f58 100644 --- a/Doc/library/string.rst +++ b/Doc/library/string.rst @@ -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 |