diff --git a/include/fmt/color.h b/include/fmt/color.h index e6212d24..4c163277 100644 --- a/include/fmt/color.h +++ b/include/fmt/color.h @@ -634,7 +634,7 @@ struct formatter, Char> : formatter { **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::bg(fmt::color::blue))); \endrst