Fix a typo in example

This commit is contained in:
Victor Zverovich 2022-08-02 06:26:19 -07:00
parent 756822ba39
commit 6452e3c9eb

View File

@ -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