Skip to content

Commit b3445c0

Browse files
committed
merge revision(s) 44549: [Backport ruby#9387]
* range.c (Range#size): [DOC] improve description and add examples. Patch by @skade. [Fixes rubyGH-501] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 52ed9b4 commit b3445c0

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sat Feb 22 15:13:38 2014 Benoit Daloze <[email protected]>
2+
3+
* range.c (Range#size): [DOC] improve description and add examples.
4+
Patch by @skade. [Fixes GH-501]
5+
16
Sat Feb 22 15:07:58 2014 Zachary Scott <[email protected]>
27

38
* lib/racc/rdoc/grammar.en.rdoc: [DOC] Correct grammar and typos

range.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,12 @@ sym_each_i(RB_BLOCK_CALL_FUNC_ARGLIST(v, arg))
711711
* call-seq:
712712
* rng.size -> num
713713
*
714-
* Returns the number of elements in the range.
714+
* Returns the number of elements in the range. Both the begin and the end of
715+
* the Range must be Numeric, otherwise nil is returned.
715716
*
716717
* (10..20).size #=> 11
718+
* ('a'..'z').size #=> nil
719+
* (-Float::INFINITY..Float::INFINITY).size #=> Infinity
717720
*/
718721

719722
static VALUE

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.1"
22
#define RUBY_RELEASE_DATE "2014-02-22"
3-
#define RUBY_PATCHLEVEL 62
3+
#define RUBY_PATCHLEVEL 63
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 2

0 commit comments

Comments
 (0)