Skip to content

Commit

Permalink
Improve join docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 12, 2020
1 parent cd0b3f9 commit 65ac626
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -3178,6 +3178,11 @@ arg_join<It, wchar_t> join(It begin, It end, wstring_view sep) {
std::vector<int> v = {1, 2, 3};
fmt::print("{}", fmt::join(v, ", "));
// Output: "1, 2, 3"
``fmt::join`` applies passed format specifiers to the range elements::
fmt::print("{:02}", fmt::join(v, ", "));
// Output: "01, 02, 03"
\endrst
*/
template <typename Range>
Expand Down

1 comment on commit 65ac626

@cgmb
Copy link

@cgmb cgmb commented on 65ac626 Feb 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going to open an issue suggesting adding this feature, but then I realized it already existed. So, I was going to suggest documenting this feature, but then I realized it was already documented.

It seems that you're two steps ahead of me. 👍

Please sign in to comment.