8000 Correct grammar mistakes in string.rst. (GH-9752) · python/cpython@d649910 · GitHub
[go: up one dir, main page]

Skip to content

Commit d649910

Browse files
andresdelfinoserhiy-storchaka
authored andcommitted
Correct grammar mistakes in string.rst. (GH-9752)
1 parent ca03f3b commit d649910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/string.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ addition of the ``{}`` and with ``:`` used instead of ``%``.
551551
For example, ``'%03.2f'`` can be translated to ``'{:03.2f}'``.
552552

553553
The new format syntax also supports new and different options, shown in the
554-
follow examples.
554+
following examples.
555555

556556
Accessing arguments by position::
557557

@@ -739,7 +739,7 @@ these rules. The methods of :class:`Template` are:
739739
simply return ``$`` instead of raising :exc:`ValueError`.
740740

741741
While other exceptions may still occur, this method is called "safe"
742-
because substitutions always tries to return a usable string instead of
742+
because it always tries to return a usable string instead of
743743
raising an exception. In another sense, :meth:`safe_substitute` may be
744744
anything other than safe, since it will silently ignore malformed
745745
templates containing dangling delimiters, unmatched braces, or

0 commit comments

Comments
 (0)
0