Skip to content

Commit

Permalink
merge revision(s) 44549: [Backport ruby#9387]
Browse files Browse the repository at this point in the history
	* 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
  • Loading branch information
nurse committed Feb 22, 2014
1 parent a9a6a64 commit f1161c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Sat Feb 22 15:13:38 2014 Benoit Daloze <eregontp@gmail.com>

* range.c (Range#size): [DOC] improve description and add examples.
Patch by @skade. [Fixes GH-501]

Sat Feb 22 15:07:58 2014 Zachary Scott <e@zzak.io>

* lib/racc/rdoc/grammar.en.rdoc: [DOC] Correct grammar and typos
Expand Down
5 changes: 4 additions & 1 deletion range.c
Expand Up @@ -711,9 +711,12 @@ sym_each_i(RB_BLOCK_CALL_FUNC_ARGLIST(v, arg))
* call-seq:
* rng.size -> num
*
* Returns the number of elements in the range.
* Returns the number of elements in the range. Both the begin and the end of
* the Range must be Numeric, otherwise nil is returned.
*
* (10..20).size #=> 11
* ('a'..'z').size #=> nil
* (-Float::INFINITY..Float::INFINITY).size #=> Infinity
*/

static VALUE
Expand Down
2 changes: 1 addition & 1 deletion version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.1.1"
#define RUBY_RELEASE_DATE "2014-02-22"
#define RUBY_PATCHLEVEL 62
#define RUBY_PATCHLEVEL 63

#define RUBY_RELEASE_YEAR 2014
#define RUBY_RELEASE_MONTH 2
Expand Down

0 comments on commit f1161c9

Please sign in to comment.