From 53e37953791921b42c3d409b23c488861094f714 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sat, 17 Aug 2024 14:04:41 +0100 Subject: [PATCH] [DOC] Tweaks to Array#bsearch_index --- array.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/array.c b/array.c index ad9fe86fa8..8e82def860 100644 --- a/array.c +++ b/array.c @@ -3564,11 +3564,13 @@ rb_ary_bsearch(VALUE ary) /* * call-seq: - * array.bsearch_index {|element| ... } -> integer or nil - * array.bsearch_index -> new_enumerator + * bsearch_index {|element| ... } -> integer or nil + * bsearch_index -> new_enumerator * - * Searches +self+ as described at method #bsearch, - * but returns the _index_ of the found element instead of the element itself. + * Returns the integer index of the element from +self+ found by a binary search, + * or +nil+ if the search found no suitable element. + * + * See {Binary Searching}[rdoc-ref:bsearch.rdoc]. */ static VALUE