From 8959566a36b3b7c28064da04c1522f3920956e22 Mon Sep 17 00:00:00 2001 From: "irene (Irene Tomaini)" Date: Sat, 9 Mar 2024 17:11:53 +0100 Subject: [PATCH] fix binary search typo (#1079) Co-authored-by: Oleksii Trekhleb --- src/algorithms/search/binary-search/binarySearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/search/binary-search/binarySearch.js b/src/algorithms/search/binary-search/binarySearch.js index b9e18aab..5c8d48fb 100644 --- a/src/algorithms/search/binary-search/binarySearch.js +++ b/src/algorithms/search/binary-search/binarySearch.js @@ -11,7 +11,7 @@ import Comparator from '../../../utils/comparator/Comparator'; export default function binarySearch(sortedArray, seekElement, comparatorCallback) { // Let's create comparator from the comparatorCallback function. - // Comparator object will give us common comparison methods like equal() and lessThen(). + // Comparator object will give us common comparison methods like equal() and lessThan(). const comparator = new Comparator(comparatorCallback); // These two indices will contain current array (sub-array) boundaries.