File tree
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed src/algorithms/search/binary-search
Expand file treeCollapse file tree1 file changed
+1
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -11,7 +11,7 @@ import Comparator from '../../../utils/comparator/Comparator';
|
11 | 11 |
|
12 | 12 | export default function binarySearch(sortedArray, seekElement, comparatorCallback) {
|
13 | 13 | // 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(). |
15 | 15 | const comparator = new Comparator(comparatorCallback);
|
16 | 16 |
|
17 | 17 | // These two indices will contain current array (sub-array) boundaries.
|
|
You can’t perform that action at this time.
0 commit comments