[Python-checkins] Correct grammar mistakes in string.rst. (GH-9752)
Miss Islington (bot)
webhook-mailer at python.org
Wed Nov 7 12:55:06 EST 2018
https://github.com/python/cpython/commit/0d9896db1638e924a4215772ffc0251e16304b9f
commit: 0d9896db1638e924a4215772ffc0251e16304b9f
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-11-07T09:55:02-08:00
summary:
Correct grammar mistakes in string.rst. (GH-9752)
(cherry picked from commit d64991031e4c86ce0331caac16770757511dd025)
Co-authored-by: Andrés Delfino <adelfino at gmail.com>
files:
M Doc/library/string.rst
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 007ce84e78f4..f5c22910c83b 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
More information about the Python-checkins
mailing list