From 82dd08285fef4f4da7b52d53e1d07215c925d9f6 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 5 Oct 2016 05:27:42 +0000 Subject: * range.c: Add docs for max/min behavior with exclusive range. [fix GH-1433][ci skip] Patch by @BM5k git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ range.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3645fd3bc6..ebc1652d56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Oct 5 14:27:36 2016 Byron Bowerman + + * 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 * ext/socket/*.c: Add proper require for example to work. diff --git a/range.c b/range.c index 3b5d7dc870..27c6ddd1ee 100644 --- a/range.c +++ b/range.c @@ -911,7 +911,8 @@ range_last(int argc, VALUE *argv, VALUE range) * 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 a <=> b. @@ -948,7 +949,8 @@ range_min(int argc, VALUE *argv, VALUE range) * 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 a <=> b. -- cgit v1.2.3