Correct an example.

This commit is contained in:
Victor Zverovich 2012-12-16 20:12:50 -08:00
parent da88577b6e
commit e0f85c4431

View File

@ -74,8 +74,7 @@ performed when formatting is complete:
// Formats an error message and prints it to std::cerr.
fmt::ActiveFormatter<PrintError> ReportError(const char *format) {
fmt::ActiveFormatter<PrintError> af(format);
return af;
return fmt::ActiveFormatter<PrintError>(format);
}
ReportError("File not found: {0}") << path;