[ruby-core:60792] [ruby-trunk - Bug #9387] Documentation for Range#size is incomplete

From: nagachika00@...
Date: 2014-02-16 16:59:33 UTC
List: ruby-core #60792
Issue #9387 has been updated by Tomoyuki Chikanaga.

Backport changed from 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: REQUIRED

r44549 was backported to ruby_2_0_0 at r45013.

----------------------------------------
Bug #9387: Documentation for Range#size is incomplete
https://bugs.ruby-lang.org/issues/9387#change-45207

* Author: Florian Gilcher
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: 2.1.0
* Backport: 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
The documentation for Range#size does not mention the case where not all arguments are instances of Numeric, in which case it returns nil.

I created a patch here: https://github.com/ruby/ruby/pull/501



-- 
http://bugs.ruby-lang.org/

In This Thread