Skip to content

Commit 6452e3c

Browse files
committed
Fix a typo in example
1 parent 756822b commit 6452e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/color.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ struct formatter<detail::styled_arg<T>, Char> : formatter<T, Char> {
634634
635635
**Example**::
636636
637-
fmt::print("Elapsed time: {s:.2f} seconds",
637+
fmt::print("Elapsed time: {0:.2f} seconds",
638638
fmt::styled(1.23, fmt::fg(fmt::color::green) |
639639
fmt::bg(fmt::color::blue)));
640640
\endrst

0 commit comments

Comments
 (0)