Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8959566

Browse files
ir3netrekhleb
andauthored
fix binary search typo (trekhleb#1079)
Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
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
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)

AltStyle によって変換されたページ (->オリジナル) /