do_vformat_to -> vformat_to and update docs

This commit is contained in:
Victor Zverovich
2018-03-04 06:40:43 -08:00
parent d07ba49821
commit 5281ea6ad2
5 changed files with 18 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ class CustomArgFormatter :
std::string custom_vformat(fmt::string_view format_str, fmt::format_args args) {
fmt::memory_buffer buffer;
// Pass custom argument formatter as a template arg to vwrite.
fmt::do_vformat_to<CustomArgFormatter>(buffer, format_str, args);
fmt::vformat_to<CustomArgFormatter>(buffer, format_str, args);
return std::string(buffer.data(), buffer.size());
}