Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Sep 18, 2021
1 parent 5092b19 commit 2742611
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -2689,13 +2689,15 @@ template <> struct formatter<bytes> {
template <typename T> struct group_digits_view { T value; };

/**
\rst
Returns a view that formats an integer value using ',' as a locale-independent
thousands separator.
**Example**::
fmt::print("{}", fmt::group_digits(12345));
// Output: "12,345"
\endrst
*/
template <typename T> auto group_digits(T value) -> group_digits_view<T> {
return {value};
Expand Down

0 comments on commit 2742611

Please sign in to comment.