Rename write_double to write_fp

It handles all floating point types, not just doubles.
This commit is contained in:
Orivej Desh
2019-10-12 03:38:31 +00:00
committed by Victor Zverovich
parent b87ac4d840
commit 3a15ea3ea5
2 changed files with 8 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ TEST(LocaleTest, DoubleDecimalPoint) {
fmt::internal::writer w(buf, fmt::internal::locale_ref(loc));
auto specs = fmt::format_specs();
specs.type = 'n';
w.write_double<double, false>(1.23, specs);
w.write_fp<double, false>(1.23, specs);
EXPECT_EQ(fmt::to_string(buf), "1?23");
}