mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-13 06:30:06 +00:00
Correct an example.
This commit is contained in:
parent
da88577b6e
commit
e0f85c4431
@ -74,8 +74,7 @@ performed when formatting is complete:
|
|||||||
|
|
||||||
// Formats an error message and prints it to std::cerr.
|
// Formats an error message and prints it to std::cerr.
|
||||||
fmt::ActiveFormatter<PrintError> ReportError(const char *format) {
|
fmt::ActiveFormatter<PrintError> ReportError(const char *format) {
|
||||||
fmt::ActiveFormatter<PrintError> af(format);
|
return fmt::ActiveFormatter<PrintError>(format);
|
||||||
return af;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ReportError("File not found: {0}") << path;
|
ReportError("File not found: {0}") << path;
|
||||||
|
Loading…
Reference in New Issue
Block a user