[前][次][番号順一覧][スレッド一覧]

ruby-changes:28974

From: zzak <ko1@a...>
Date: Sun, 2 Jun 2013 12:07:16 +0900 (JST)
Subject: [ruby-changes:28974] zzak:r41026 (trunk): * range.c: Fix rdoc on Range#bsearch [Bug #8242]

zzak	2013-06-02 12:05:26 +0900 (Sun, 02 Jun 2013)

  New Revision: 41026

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41026

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

  Modified files:
    trunk/ChangeLog
    trunk/range.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41025)
+++ ChangeLog	(revision 41026)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jun  2 12:03:58 2013  Zachary Scott  <zachary@z...>
+
+	* range.c: Fix rdoc on Range#bsearch [Bug #8242] [ruby-core:54143]
+
 Sun Jun  2 02:08:37 2013  NARUSE, Yui  <naruse@r...>
 
 	* enc/euc_jp.c: fix typo: the name of EUC-JIS-2004.
Index: range.c
===================================================================
--- range.c	(revision 41025)
+++ range.c	(revision 41026)
@@ -512,10 +512,10 @@ is_integer_p(VALUE v) https://github.com/ruby/ruby/blob/trunk/range.c#L512
  *     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),

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]