mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-28 06:36:02 +00:00
Fix example
This commit is contained in:
parent
6606971aae
commit
fd1753484e
2
format.h
2
format.h
@ -2712,7 +2712,7 @@ enum Color { BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE };
|
|||||||
Formats a string and prints it to stdout using ANSI escape sequences
|
Formats a string and prints it to stdout using ANSI escape sequences
|
||||||
to specify color (experimental).
|
to specify color (experimental).
|
||||||
Example:
|
Example:
|
||||||
PrintColored(fmt::RED, "Elapsed time: {0:.2f} seconds") << 1.23;
|
print_colored(fmt::RED, "Elapsed time: {0:.2f} seconds", 1.23);
|
||||||
*/
|
*/
|
||||||
void print_colored(Color c, CStringRef format, ArgList args);
|
void print_colored(Color c, CStringRef format, ArgList args);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user