Skip to content

Commit b3a6db0

Browse files
Update include/oneapi/dpl/pstl/algorithm_ranges_impl.h
Co-authored-by: Alexey Kukanov <[email protected]>
1 parent d0dcc89 commit b3a6db0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/oneapi/dpl/pstl/algorithm_ranges_impl.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,9 @@ __pattern_merge(_Tag __tag, _ExecutionPolicy&& __exec, _R1&& __r1, _R2&& __r2, _
471471
if (__n_out == 0)
472472
return __return_type{__it_1, __it_2, __it_out};
473473

474-
//Parallel and serial versions of ___merge_path_out_lim merges 1st sequience and 2nd sequience in "revert maner":
475-
//the identical elements from 2nd sequience are being merged first.
476-
//So, the following call passes 1st sequience 2nd sequience in "a revert maner".
474+
// Parallel and serial versions of ___merge_path_out_lim merge the 1st sequence and the 2nd sequence in "reverse order":
475+
// the identical elements from the 2nd sequence are merged first.
476+
// So, the call to ___merge_path_out_lim swaps the order of sequences.
477477
std::pair __res = ___merge_path_out_lim(__tag, std::forward<_ExecutionPolicy>(__exec), __it_2, __n_2, __it_1, __n_1,
478478
__it_out, __n_out, __comp_2);
479479

0 commit comments

Comments
 (0)