From b916c39db4adeea4816d99935e253abf1eb48fc7 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 3 Apr 2008 11:57:23 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ range.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c529c0e43..2a80eb5cf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -28,6 +28,12 @@ Thu Apr 3 09:00:45 2008 Nobuyoshi Nakada * tool/instruction.rb (OptUnifsIncGenerator): ditto. +Thu Apr 3 08:46:09 2008 Yukihiro Matsumoto + + * 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 * rational.c (nurat_int_check): function for DRY integer check. diff --git a/range.c b/range.c index 94e8182a87..be6b3e52bb 100644 --- a/range.c +++ b/range.c @@ -720,7 +720,8 @@ range_eqq(VALUE range, VALUE val) * rng.include?(val) => true or false * * Returns true if obj is an element of - * rng, false otherwise. + * rng, false otherwise. If beg and end are + * numeric, comparison is done according magnitude of values. * * ("a".."z").include?("g") # => true * ("a".."z").include?("A") # => false