Skip to content

Commit 8959566

Browse files
ir3netrekhleb
andauthored
fix binary search typo (trekhleb#1079)
Co-authored-by: Oleksii Trekhleb <[email protected]>
1 parent 729bc4d commit 8959566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/algorithms/search/binary-search/binarySearch.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Comparator from '../../../utils/comparator/Comparator'
1111

1212
exportdefaultfunctionbinarySearch(sortedArray,seekElement,comparatorCallback){
1313
// Let's create comparator from the comparatorCallback function.
14-
// Comparator object will give us common comparison methods like equal() and lessThen().
14+
// Comparator object will give us common comparison methods like equal() and lessThan().
1515
constcomparator=newComparator(comparatorCallback);
1616

1717
// These two indices will contain current array (sub-array) boundaries.

0 commit comments

Comments
(0)