Skip to content

Commit

Permalink
* range.c: Add docs for max/min behavior with exclusive range.
Browse files Browse the repository at this point in the history
  [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
  • Loading branch information
hsbt committed Oct 5, 2016
1 parent 4043565 commit 82dd082
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Wed Oct 5 14:27:36 2016 Byron Bowerman <me@bm5k.com>

* 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@gmail.com>

* ext/socket/*.c: Add proper require for example to work.
Expand Down
6 changes: 4 additions & 2 deletions range.c
Expand Up @@ -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 <code>a <=> b</code>.
Expand Down Expand Up @@ -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 <code>a <=> b</code>.
Expand Down

0 comments on commit 82dd082

Please sign in to comment.