mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-26 20:20:04 +00:00
Fix markdown
This commit is contained in:
parent
0b0a05770f
commit
cddb41f633
@ -1,7 +1,7 @@
|
|||||||
# Format String Syntax
|
# Format String Syntax
|
||||||
|
|
||||||
[Formatting functions](api.md) such as `fmt::format` and `fmt::print` use the same
|
[Formatting functions](api.md) such as `fmt::format` and `fmt::print` use the
|
||||||
format string syntax described in this section.
|
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
|
||||||
@ -27,12 +27,12 @@ output instead of the replacement field. The *arg_id* is optionally followed
|
|||||||
by a *format_spec*, which is preceded by a colon `':'`. These specify a
|
by a *format_spec*, which is preceded by a colon `':'`. These specify a
|
||||||
non-default format for the replacement value.
|
non-default format for the replacement value.
|
||||||
|
|
||||||
See also the [Format Specification Mini-Language
|
See also the [Format Specification
|
||||||
](#format-specification-mini-language) section.
|
Mini-Language](#format-specification-mini-language) section.
|
||||||
|
|
||||||
If the numerical arg_ids in a format string are 0, 1, 2, \... in
|
If the numerical arg_ids in a format string are 0, 1, 2, ... in
|
||||||
sequence, they can all be omitted (not just some) and the numbers 0, 1,
|
sequence, they can all be omitted (not just some) and the numbers 0, 1,
|
||||||
2, \... will be automatically inserted in that order.
|
2, ... will be automatically inserted in that order.
|
||||||
|
|
||||||
Named arguments can be referred to by their names or indices.
|
Named arguments can be referred to by their names or indices.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user