diff --git a/README.rst b/README.rst index 906f93d3..fc1b9377 100644 --- a/README.rst +++ b/README.rst @@ -74,8 +74,7 @@ performed when formatting is complete: // Formats an error message and prints it to std::cerr. fmt::ActiveFormatter ReportError(const char *format) { - fmt::ActiveFormatter af(format); - return af; + return fmt::ActiveFormatter(format); } ReportError("File not found: {0}") << path;