Skip to content

Commit e2ac7bb

Browse files
Merge pull request #101 from Liam0205/patch-1
[cpp][12_sorts] fix typo
2 parents 6f934a9 + 73fc66e commit e2ac7bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

c-cpp/12_sorts/merge_sort.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ void inplace_merge_sort(BidirIt first, BidirIt last, BinaryPred comp = BinaryPre
5353
const auto len = std::distance(first, last);
5454
if (len <= 1) { return; }
5555
auto cut = first + len / 2;
56-
merge_sort(first, cut, comp);
57-
merge_sort(cut, last, comp);
56+
inplace_merge_sort(first, cut, comp);
57+
inplace_merge_sort(cut, last, comp);
5858
std::inplace_merge(first, cut, last, comp);
5959
}
6060

0 commit comments

Comments
 (0)