Skip to content

Commit

Permalink
fix indentation issue in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahajha authored Jul 31, 2021
1 parent 16c4a09 commit 7188ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ int parallel_vec_sum(const std::vector<int>& vec)

for (std::size_t i = 0; i < pool.size(); ++i)
{
auto begin = vec.begin(), end = vec.begin();
std::advance(begin, (vec.size() * i) / pool.size());
auto begin = vec.begin(), end = vec.begin();
std::advance(begin, (vec.size() * i) / pool.size());
std::advance(end , (vec.size() * (i + 1)) / pool.size());

futures.push_back(pool.push(std::accumulate<decltype(vec.begin()), int>, begin, end, 0));
Expand Down

0 comments on commit 7188ad0

Please sign in to comment.