From: Sara Golemon Date: Wed, 24 Jun 2015 16:32:42 +0000 (-0700) Subject: Fix copy/pasta in docs X-Git-Tag: v0.48.0~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=65eadfc8401481285dc027582300e46c56379ba8;p=folly.git 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 --- 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