Fix then > than typo.

This commit is contained in:
Oleksii Trekhleb
2018-05-24 09:01:50 +03:00
parent 8bd59b6617
commit d596e1d485
10 changed files with 38 additions and 38 deletions

View File

@@ -22,7 +22,7 @@ export default function binarySearch(sortedArray, seekElement, comparatorCallbac
}
// Decide which half to choose for seeking next: left or right one.
if (comparator.lessThen(sortedArray[middleIndex], seekElement)) {
if (comparator.lessThan(sortedArray[middleIndex], seekElement)) {
// Go to the right half of the array.
startIndex = middleIndex + 1;
} else {