Fix example for folly::format
authorChao Yang <chaoyc@fb.com>
Wed, 31 Oct 2012 01:27:19 +0000 (18:27 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 16 Dec 2012 22:44:19 +0000 (14:44 -0800)
Summary: That's all.

Test Plan: .

Reviewed By: tjackson@fb.com

FB internal diff: D618824

folly/Format.h

index ed0d8759b6859fe9d7bbe25a3789541c90073a5c..9571a9a41fdfb917a9aec44814c0b84ab31c2267 100644 (file)
@@ -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 <class... Args>