From 91d0ef0eb9a7e561b28fcf2441259d5e85c0c11b Mon Sep 17 00:00:00 2001 From: Chao Yang Date: Tue, 30 Oct 2012 18:27:19 -0700 Subject: [PATCH] Fix example for folly::format Summary: That's all. Test Plan: . Reviewed By: tjackson@fb.com FB internal diff: D618824 --- folly/Format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Format.h b/folly/Format.h index ed0d8759..9571a9a4 100644 --- a/folly/Format.h +++ b/folly/Format.h @@ -152,7 +152,7 @@ std::ostream& operator<<(std::ostream& out, /** * Create a formatter object. * - * std::string formatted = format("{} {}", 23, 42); + * std::string formatted = format("{} {}", 23, 42).str(); * LOG(INFO) << format("{} {}", 23, 42); */ template -- 2.34.1