Skip to content

Commit 8959566

Browse files
ir3netrekhleb
andauthoredMar 9, 2024
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Comparator from '../../../utils/comparator/Comparator';
1111

1212
export default function binarySearch(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
const comparator = new Comparator(comparatorCallback);
1616

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

0 commit comments

Comments
 (0)
Please sign in to comment.