1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* range.c: Fix rdoc on Range#bsearch [Bug #8242] [ruby-core:54143]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-06-02 03:05:26 +00:00
parent bc7a6dbb97
commit eb5f361937
2 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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),