From 6452e3c9eb676153b99cb8fac0e30eb400628abc Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 2 Aug 2022 06:26:19 -0700 Subject: [PATCH] Fix a typo in example --- include/fmt/color.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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