Fix a typo in example
This commit is contained in:
parent
756822ba39
commit
6452e3c9eb
@ -634,7 +634,7 @@ struct formatter<detail::styled_arg<T>, Char> : formatter<T, Char> {
|
|||||||
|
|
||||||
**Example**::
|
**Example**::
|
||||||
|
|
||||||
fmt::print("Elapsed time: {s:.2f} seconds",
|
fmt::print("Elapsed time: {0:.2f} seconds",
|
||||||
fmt::styled(1.23, fmt::fg(fmt::color::green) |
|
fmt::styled(1.23, fmt::fg(fmt::color::green) |
|
||||||
fmt::bg(fmt::color::blue)));
|
fmt::bg(fmt::color::blue)));
|
||||||
\endrst
|
\endrst
|
||||||
|
Loading…
Reference in New Issue
Block a user