mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
argument index -> argument id
This commit is contained in:
parent
229ee34eea
commit
e51119508c
@ -4,8 +4,9 @@
|
|||||||
Format String Syntax
|
Format String Syntax
|
||||||
********************
|
********************
|
||||||
|
|
||||||
Formatting functions such as :ref:`fmt::format() <format>` and :ref:`fmt::print() <print>`
|
Formatting functions such as :ref:`fmt::format() <format>` and
|
||||||
use the same format string syntax described in this section.
|
:ref:`fmt::print() <print>` use the same format string syntax described in this
|
||||||
|
section.
|
||||||
|
|
||||||
Format strings contain "replacement fields" surrounded by curly braces ``{}``.
|
Format strings contain "replacement fields" surrounded by curly braces ``{}``.
|
||||||
Anything that is not contained in braces is considered literal text, which is
|
Anything that is not contained in braces is considered literal text, which is
|
||||||
@ -51,8 +52,8 @@ described in the next section.
|
|||||||
|
|
||||||
A *format_spec* field can also include nested replacement fields in certain
|
A *format_spec* field can also include nested replacement fields in certain
|
||||||
positions within it. These nested replacement fields can contain only an
|
positions within it. These nested replacement fields can contain only an
|
||||||
argument index; format specifications are not allowed. This allows the
|
argument id; format specifications are not allowed. This allows the formatting
|
||||||
formatting of a value to be dynamically specified.
|
of a value to be dynamically specified.
|
||||||
|
|
||||||
See the :ref:`formatexamples` section for some examples.
|
See the :ref:`formatexamples` section for some examples.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user