summaryrefslogtreecommitdiffstats
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-03 11:57:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-03 11:57:23 +0000
commit633de83b7647fa8ceafe41d54e0802a37d990458 (patch)
tree755255fe8f9f23cf28c56e1164f1aecfdaca827e /range.c
parent0fffab89adfa5f8fb216bb7fe0d3fc60006418d5 (diff)
downloadruby-633de83b7647fa8ceafe41d54e0802a37d990458.tar.gz
ruby-633de83b7647fa8ceafe41d54e0802a37d990458.tar.xz
ruby-633de83b7647fa8ceafe41d54e0802a37d990458.zip
* range.c (range_include): add RDoc to describe that comparison
for numeric is done according magnitude of values. [ruby-core:15907] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'range.c')
-rw-r--r--range.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/range.c b/range.c
index 94e8182a8..be6b3e52b 100644
--- a/range.c
+++ b/range.c
@@ -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