summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2012-08-17 19:42:12 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2012-08-17 19:42:12 (GMT)
commitbbfe573d9d5fbae478199ccff07c39f5b2de499d (patch)
tree61d51dc2768995e9230d65ddbd090ca4a79d854f /Doc/library
parent1b79918641e1db92a30367a7bef7be77fe6a2de2 (diff)
parentf6190c146347c088d1927e95fa5cb3cfbea6f423 (diff)
downloadcpython-bbfe573d9d5fbae478199ccff07c39f5b2de499d.zip
cpython-bbfe573d9d5fbae478199ccff07c39f5b2de499d.tar.gz
cpython-bbfe573d9d5fbae478199ccff07c39f5b2de499d.tar.bz2
Merge with 3.2 #15660
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/string.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index fc0bd24..aed191b 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -368,9 +368,9 @@ instead.
*width* is a decimal integer defining the minimum field width. If not
specified, then the field width will be determined by the content.
-If the *width* field is preceded by a zero (``'0'``) character, this enables
-zero-padding. This is equivalent to an *alignment* type of ``'='`` and a *fill*
-character of ``'0'``.
+Preceding the *width* field by a zero (``'0'``) character enables
+sign-aware zero-padding for numeric types. This is equivalent to a *fill*
+character of ``'0'`` with an *alignment* type of ``'='``.
The *precision* is a decimal number indicating how many digits should be
displayed after the decimal point for a floating point value formatted with