From e0f85c443134c51ea42d70c2e22aae04f46fb4f8 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 16 Dec 2012 20:12:50 -0800 Subject: [PATCH] Correct an example. --- README.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;