Improve nano::util::join
This commit is contained in:
parent
7ac49e8ffd
commit
0f7b60df45
2 changed files with 2 additions and 2 deletions
|
@ -232,7 +232,7 @@ std::string join (InputIt first, InputIt last, std::string_view delimiter, Func
|
|||
}
|
||||
else
|
||||
{
|
||||
ss << delimiter << " ";
|
||||
ss << delimiter;
|
||||
}
|
||||
ss << transform (*first);
|
||||
++first;
|
||||
|
|
|
@ -165,7 +165,7 @@ std::string nano::vote::to_json () const
|
|||
|
||||
std::string nano::vote::hashes_string () const
|
||||
{
|
||||
return nano::util::join (hashes, ",", [] (auto const & hash) {
|
||||
return nano::util::join (hashes, ", ", [] (auto const & hash) {
|
||||
return hash.to_string ();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue