From fc4029b8434851fa82f8f3443789e10b9b20411b Mon Sep 17 00:00:00 2001 From: marcandre Date: Wed, 12 Dec 2018 19:51:50 +0000 Subject: NEWS: Mention (1...) in addition to (1..) [DOC] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 272ce1ca9a..8fb65b273c 100644 --- a/NEWS +++ b/NEWS @@ -27,10 +27,11 @@ sufficient information, see the ChangeLog file or Redmine * constant names may start with a non-ASCII capital letter. [Feature #13770] * An endless range is introduced. You can write a range that has no end, - like (0..). The following shows typical use cases. [Feature #12912] + like (0..) (or similarly (0...)). + The following shows typical use cases. [Feature #12912] ary[1..] # identical to ary[1..-1] - (1..).each {|index| ... } # infinite loop from index 1 + (1...).each {|index| ... } # infinite loop from index 1 ary.zip(1..) {|elem, index| ... } # ary.each.with_index(1) { } * Non-Symbol key in keyword arguments hash causes an exception. -- cgit v1.2.3