зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
ccf20a6d3f
Коммит
b916c39db4
|
@ -28,6 +28,12 @@ Thu Apr 3 09:00:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
|||
|
||||
* tool/instruction.rb (OptUnifsIncGenerator): ditto.
|
||||
|
||||
Thu Apr 3 08:46:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* rational.c (nurat_int_check): function for DRY integer check.
|
||||
|
|
3
range.c
3
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче