mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Correct example.
This commit is contained in:
parent
5d15bdd5a5
commit
b827a97fd6
@ -101,7 +101,7 @@ which take arbitrary arguments:
|
|||||||
|
|
||||||
// Prints formatted error message.
|
// Prints formatted error message.
|
||||||
void report_error(const char *format, const fmt::ArgList &args) {
|
void report_error(const char *format, const fmt::ArgList &args) {
|
||||||
fmt::print("Error: {}");
|
fmt::print("Error: ");
|
||||||
fmt::print(format, args);
|
fmt::print(format, args);
|
||||||
}
|
}
|
||||||
FMT_VARIADIC(void, report_error, const char *)
|
FMT_VARIADIC(void, report_error, const char *)
|
||||||
|
Loading…
Reference in New Issue
Block a user