Improve nano::util::join

This commit is contained in:
Piotr Wójcik 2024-01-28 21:32:18 +01:00
commit 0f7b60df45
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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 ();
});
}