summaryrefslogtreecommitdiffstats
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-25 20:05:52 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-25 20:05:52 (GMT)
commitc15205e93957b3bef18f317a480f8b99213d4870 (patch)
treef9ab82f04ad51b79240cf95a33b805c6dee73a2c /Doc/library/string.rst
parentbbaa2ebd17d1f2bd5a1d412bdfb7c323ec90586e (diff)
downloadcpython-c15205e93957b3bef18f317a480f8b99213d4870.zip
cpython-c15205e93957b3bef18f317a480f8b99213d4870.tar.gz
cpython-c15205e93957b3bef18f317a480f8b99213d4870.tar.bz2
rename the section about new formatting 'new-string-formatting'
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 09f9182..fa953f2 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -103,16 +103,16 @@ The constants defined in this module are:
:func:`strip` and :func:`split` is undefined.
-.. _string-formatting:
+.. _new-string-formatting:
String Formatting
-----------------
Starting in Python 2.6, the built-in str and unicode classes provide the ability
-to do complex variable substitutions and value formatting via the :func:`format`
-method described in :pep:`3101`. The :class:`Formatter` class in the
-:mod:`string` module allows you to create and customize your own string
-formatting behaviors using the same implementation as the built-in
+to do complex variable substitutions and value formatting via the
+:meth:`str.format` method described in :pep:`3101`. The :class:`Formatter`
+class in the :mod:`string` module allows you to create and customize your own
+string formatting behaviors using the same implementation as the built-in
:meth:`format` method.
.. class:: Formatter