Correct syntax

This commit is contained in:
Victor Zverovich 2016-08-25 07:08:36 -07:00
parent 3d5125cd87
commit 04335aeadb

View File

@ -49,12 +49,10 @@ mini-language" or interpretation of the *format_spec*.
Most built-in types support a common formatting mini-language, which is Most built-in types support a common formatting mini-language, which is
described in the next section. described in the next section.
A *format_spec* field can also include nested replacement fields within it. A *format_spec* field can also include nested replacement fields in certain
These nested replacement fields can contain only an argument index; positions within it. These nested replacement fields can contain only an
format specifications are not allowed. Formatting is performed as if the argument index; format specifications are not allowed. This allows the
replacement fields within the format_spec are substituted before the formatting of a value to be dynamically specified.
*format_spec* string is interpreted. This allows the formatting of a value
to be dynamically specified.
See the :ref:`formatexamples` section for some examples. See the :ref:`formatexamples` section for some examples.
@ -234,7 +232,7 @@ The available presentation types for floating-point values are:
+=========+==========================================================+ +=========+==========================================================+
| ``'a'`` | Hexadecimal floating point format. Prints the number in | | ``'a'`` | Hexadecimal floating point format. Prints the number in |
| | base 16 with prefix ``"0x"`` and lower-case letters for | | | base 16 with prefix ``"0x"`` and lower-case letters for |
| | digits above 9. Uses 'p' to indicate the exponent. | | | digits above 9. Uses ``'p'`` to indicate the exponent. |
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+
| ``'A'`` | Same as ``'a'`` except it uses upper-case letters for | | ``'A'`` | Same as ``'a'`` except it uses upper-case letters for |
| | the prefix, digits above 9 and to indicate the exponent. | | | the prefix, digits above 9 and to indicate the exponent. |