mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Fix an example (thanks Alexey Kuzmenko)
This commit is contained in:
@ -100,7 +100,7 @@ locale::
|
|||||||
#include <locale>
|
#include <locale>
|
||||||
|
|
||||||
std::locale::global(std::locale("en_US.UTF-8"));
|
std::locale::global(std::locale("en_US.UTF-8"));
|
||||||
auto s = fmt::format("{:n}", 1000000); // s == "1,000,000"
|
auto s = fmt::format("{:L}", 1000000); // s == "1,000,000"
|
||||||
|
|
||||||
.. _format-api:
|
.. _format-api:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user