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

ruby-changes:44274

From: hsbt <ko1@a...>
Date: Wed, 5 Oct 2016 14:27:47 +0900 (JST)
Subject: [ruby-changes:44274] hsbt:r56347 (trunk): * range.c: Add docs for max/min behavior with exclusive range.

hsbt	2016-10-05 14:27:42 +0900 (Wed, 05 Oct 2016)

  New Revision: 56347

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56347

  Log:
    * range.c: Add docs for max/min behavior with exclusive range.
      [fix GH-1433][ci skip] Patch by @BM5k

  Modified files:
    trunk/ChangeLog
    trunk/range.c
Index: range.c
===================================================================
--- range.c	(revision 56346)
+++ range.c	(revision 56347)
@@ -911,7 +911,8 @@ range_last(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/range.c#L911
  *     rng.min(n) {| a,b | block }   -> array
  *
  *  Returns the minimum value in the range. Returns +nil+ if the begin
- *  value of the range is larger than the end value.
+ *  value of the range is larger than the end value. Returns +nil+ if
+ *  the begin value of an exclusive range is equal to the end value.
  *
  *  Can be given an optional block to override the default comparison
  *  method <code>a <=> b</code>.
@@ -948,7 +949,8 @@ range_min(int argc, VALUE *argv, VALUE r https://github.com/ruby/ruby/blob/trunk/range.c#L949
  *     rng.max(n) {| a,b | block }   -> obj
  *
  *  Returns the maximum value in the range. Returns +nil+ if the begin
- *  value of the range larger than the end value.
+ *  value of the range larger than the end value. Returns +nil+ if
+ *  the begin value of an exclusive range is equal to the end value.
  *
  *  Can be given an optional block to override the default comparison
  *  method <code>a <=> b</code>.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56346)
+++ ChangeLog	(revision 56347)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Oct  5 14:27:36 2016  Byron Bowerman  <me@b...>
+
+	* range.c: Add docs for max/min behavior with exclusive range.
+	  [fix GH-1433][ci skip] Patch by @BM5k
+
 Wed Oct  5 12:57:21 2016  Richard Schneeman  <richard.schneeman+foo@g...>
 
 	* ext/socket/*.c: Add proper require for example to work.

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

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