diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-03 11:57:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-03 11:57:23 +0000 |
commit | b916c39db4adeea4816d99935e253abf1eb48fc7 (patch) | |
tree | 755255fe8f9f23cf28c56e1164f1aecfdaca827e /range.c | |
parent | ccf20a6d3fca0ae3a6817387622892c4db340032 (diff) |
* range.c (range_include): add RDoc to describe that comparison
for numeric is done according magnitude of values.
[ruby-core:15907]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r-- | range.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -720,7 +720,8 @@ range_eqq(VALUE range, VALUE val) * rng.include?(val) => true or false * * Returns <code>true</code> if <i>obj</i> is an element of - * <i>rng</i>, <code>false</code> otherwise. + * <i>rng</i>, <code>false</code> otherwise. If beg and end are + * numeric, comparison is done according magnitude of values. * * ("a".."z").include?("g") # => true * ("a".."z").include?("A") # => false |