diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | range.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Sun Jun 2 12:03:58 2013 Zachary Scott <zachary@zacharyscott.net> + + * range.c: Fix rdoc on Range#bsearch [Bug #8242] [ruby-core:54143] + Sun Jun 2 02:08:37 2013 NARUSE, Yui <naruse@ruby-lang.org> * enc/euc_jp.c: fix typo: the name of EUC-JIS-2004. @@ -512,10 +512,10 @@ is_integer_p(VALUE v) * rng.bsearch {|obj| block } -> value * * By using binary search, finds a value in range which meets the given - * condition in O(log n) where n is the size of the array. + * condition in O(log n) where n is the size of the range. * * 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 + * a find-any mode. In either case, the elements of the range must be * monotone (or sorted) with respect to the block. * * In find-minimum mode (this is a good choice for typical use case), |