ruby-changes:4404
From: ko1@a...
Date: Thu, 3 Apr 2008 20:57:41 +0900 (JST)
Subject: [ruby-changes:4404] matz - Ruby:r15895 (trunk): * range.c (range_include): add RDoc to describe that comparison
matz 2008-04-03 20:57:23 +0900 (Thu, 03 Apr 2008)
New Revision: 15895
Modified files:
trunk/ChangeLog
trunk/range.c
Log:
* range.c (range_include): add RDoc to describe that comparison
for numeric is done according magnitude of values.
[ruby-core:15907]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15895&r2=15894&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/range.c?r1=15895&r2=15894&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15894)
+++ ChangeLog (revision 15895)
@@ -28,6 +28,12 @@
* tool/instruction.rb (OptUnifsIncGenerator): ditto.
+Thu Apr 3 08:46:09 2008 Yukihiro Matsumoto <matz@r...>
+
+ * range.c (range_include): add RDoc to describe that comparison
+ for numeric is done according magnitude of values.
+ [ruby-core:15907]
+
Wed Apr 2 22:29:35 2008 Yukihiro Matsumoto <matz@r...>
* rational.c (nurat_int_check): function for DRY integer check.
Index: range.c
===================================================================
--- range.c (revision 15894)
+++ range.c (revision 15895)
@@ -720,7 +720,8 @@
* 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
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/