Fix copy/pasta in docs
[folly.git] / folly / docs / Format.md
index 74192058abc00c496fae81e0367c83feaeae1b6d..5e40bf5d2f611981767792e7a0170ce425820535 100644 (file)
@@ -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