From 65eadfc8401481285dc027582300e46c56379ba8 Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 24 Jun 2015 09:32:42 -0700 Subject: [PATCH] Fix copy/pasta in docs Summary: svformat explicitly takes a container for direct indexing, but the format string used is per-arg, which corresponds to format/sformat. Closes #228 Reviewed By: @JoelMarcey Differential Revision: D2184334 --- folly/docs/Format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/docs/Format.md b/folly/docs/Format.md index 74192058..5e40bf5d 100644 --- a/folly/docs/Format.md +++ b/folly/docs/Format.md @@ -63,7 +63,7 @@ std::cout << format("The only {0[what]} is {0[value]}", m); // And if you just want the string, std::string result = svformat("The only {what} is {value}", m); // => "The only answer is 42" -std::string result = svformat("The only {0[what]} is {0[value]}", m); +std::string result = sformat("The only {0[what]} is {0[value]}", m); // => "The only answer is 42" // {} works for vformat too -- 2.34.1