mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Fix an example (thanks Alexey Kuzmenko)
This commit is contained in:
parent
943532fece
commit
297c3b2ed5
@ -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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user