mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-25 03:39:56 +01:00
docs: format two unescaped printf references with backticks (#4578)
This commit is contained in:
@@ -251,7 +251,7 @@ The available integer presentation types are:
|
|||||||
<td><code>'b'</code></td>
|
<td><code>'b'</code></td>
|
||||||
<td>
|
<td>
|
||||||
Binary format. Outputs the number in base 2. Using the <code>'#'</code>
|
Binary format. Outputs the number in base 2. Using the <code>'#'</code>
|
||||||
option with this type adds the prefix <code>"0b"</code> to the output value.
|
option with this type adds the prefix <code>"0b"</code> to the output value.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -768,9 +768,9 @@ fmt::print("{:n:f}", std::array{std::numbers::pi, std::numbers::e});
|
|||||||
## Format Examples
|
## Format Examples
|
||||||
|
|
||||||
This section contains examples of the format syntax and comparison with
|
This section contains examples of the format syntax and comparison with
|
||||||
the printf formatting.
|
the `printf` formatting.
|
||||||
|
|
||||||
In most of the cases the syntax is similar to the printf formatting,
|
In most of the cases the syntax is similar to the `printf` formatting,
|
||||||
with the addition of the `{}` and with `:` used instead of `%`. For
|
with the addition of the `{}` and with `:` used instead of `%`. For
|
||||||
example, `"%03.2f"` can be translated to `"{:03.2f}"`.
|
example, `"%03.2f"` can be translated to `"{:03.2f}"`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user