diff --git a/array.c b/array.c index 25fd829..332a771 100644 --- a/array.c +++ b/array.c @@ -2378,7 +2378,7 @@ rb_ary_sort(VALUE ary) * ary.bsearch {|x| block } -> elem * * By using binary search, finds a value from this array which meets - * the given condition in O(n log n) where n is the size of the array. + * the given condition in O(log n) where n is the size of the array. * * You can use this method in two use cases: a find-minimum mode and * a find-any mode. In either case, the elements of the array must be diff --git a/range.c b/range.c index 4c2252f..42fac03 100644 --- a/range.c +++ b/range.c @@ -475,7 +475,7 @@ range_step(int argc, VALUE *argv, VALUE range) * rng.bsearch {|obj| block } -> value * * By using binary search, finds a value in range which meets the given - * condition in O(n log n) where n is the size of the array. + * condition in O(log n) where n is the size of the array. * * You can use this method in two use cases: a find-minimum mode and * a find-any mode. In either case, the elements of the array must be