ruby-changes:51695
From: stomar <ko1@a...>
Date: Mon, 9 Jul 2018 04:30:25 +0900 (JST)
Subject: [ruby-changes:51695] stomar:r63907 (trunk): range.c: [DOC] small improvement
stomar 2018-07-09 04:30:19 +0900 (Mon, 09 Jul 2018) New Revision: 63907 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63907 Log: range.c: [DOC] small improvement Modified files: trunk/range.c Index: range.c =================================================================== --- range.c (revision 63906) +++ range.c (revision 63907) @@ -74,7 +74,7 @@ range_modify(VALUE range) https://github.com/ruby/ruby/blob/trunk/range.c#L74 * Range.new(begin, end, exclude_end=false) -> rng * * Constructs a range using the given +begin+ and +end+. If the +exclude_end+ - * parameter is omitted or is <code>false</code>, the +rng+ will include + * parameter is omitted or is <code>false</code>, the range will include * the end object; otherwise, it will be excluded. */ @@ -766,7 +766,7 @@ range_size(VALUE range) https://github.com/ruby/ruby/blob/trunk/range.c#L766 * rng.to_a -> array * rng.entries -> array * - * Returns an array containing the items in <i>rng</i>. + * Returns an array containing the items in the range. * * (1..7).to_a #=> [1, 2, 3, 4, 5, 6, 7] * (1..).to_a #=> RangeError: cannot convert endless range to an array -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/