Fix some typos; fix syntax in a code example; fix unintentional
description list for ticket numbers; other fixes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
stomar 2018-12-13 20:35:02 +00:00
Родитель 5c1fd79f1d
Коммит 6b6b59f7fd
1 изменённых файлов: 21 добавлений и 22 удалений

43
NEWS
Просмотреть файл

@ -16,23 +16,23 @@ sufficient information, see the ChangeLog file or Redmine
* <code>$SAFE</code> is a process global state and we can set 0 again. [Feature #14250] * <code>$SAFE</code> is a process global state and we can set 0 again. [Feature #14250]
* refinements takes place at block passing. [Feature #14223] * refinements take place at block passing. [Feature #14223]
* refinements takes place at Kernel#public_send. [Feature #15326] * refinements take place at Kernel#public_send. [Feature #15326]
* refinements takes place at Kernel#respond_to?. [Feature #15327] * refinements take place at Kernel#respond_to?. [Feature #15327]
* +else+ without +rescue+ now causes a syntax error. [EXPERIMENTAL] [Feature #14606] * +else+ without +rescue+ now causes a syntax error. [EXPERIMENTAL] [Feature #14606]
* constant names may start with a non-ASCII capital letter. [Feature #13770] * 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, * An endless range is introduced. You can write a range that has no end,
like <code>(0..)</code> (or similarly <code>(0...)</code>). like <code>(0..)</code> (or similarly <code>(0...)</code>).
The following shows typical use cases. [Feature #12912] The following shows typical use cases. [Feature #12912]
ary[1..] # identical to ary[1..-1] ary[1..] # identical to ary[1..-1]
(1...).each {|index| ... } # infinite loop from index 1 (1...).each {|index| block } # infinite loop from index 1
ary.zip(1..) {|elem, index| ... } # ary.each.with_index(1) { } ary.zip(1..) {|elem, index| block } # ary.each.with_index(1) { }
* Non-Symbol key in keyword arguments hash causes an exception. * Non-Symbol key in keyword arguments hash causes an exception.
@ -92,8 +92,8 @@ sufficient information, see the ChangeLog file or Redmine
[New methods] [New methods]
* Enumerable#chain returns an enumerator object that iterates over the * Enumerable#chain returns an enumerator object that iterates over the
elements of the receiver and then those of each argument in sequence. elements of the receiver and then those of each argument
[Feature #15144] in sequence. [Feature #15144]
[Modified methods] [Modified methods]
@ -129,8 +129,7 @@ sufficient information, see the ChangeLog file or Redmine
[New methods] [New methods]
* Enumerator#+ returns an enumerator object that iterates over the * Enumerator#+ returns an enumerator object that iterates over the
elements of the receiver and then those of the other operand. elements of the receiver and then those of the other operand. [Feature #15144]
[Feature #15144]
[ENV] [ENV]
@ -150,7 +149,7 @@ sufficient information, see the ChangeLog file or Redmine
[Modified methods] [Modified methods]
* Hash#merge, merge!, and update now accept multiple * Hash#merge, Hash#merge!, and Hash#update now accept multiple
arguments. [Feature #15111] arguments. [Feature #15111]
* Hash#to_h now maps keys and values to new keys and values * Hash#to_h now maps keys and values to new keys and values
@ -314,14 +313,14 @@ sufficient information, see the ChangeLog file or Redmine
[Aliased method] [Aliased method]
* Struct#filter is a new alias for Struct#select [Feature #13784] * Struct#filter is a new alias for Struct#select. [Feature #13784]
[Time] [Time]
[New features] [New features]
* Time.new and Time#getlocal accept a timezone object as well as * Time.new and Time#getlocal accept a timezone object as well as
UTC offset string. Time#+, Time#- and Time#succ also preserve an UTC offset string. Time#+, Time#- and Time#succ also preserve
the timezone. [Feature #14850] the timezone. [Feature #14850]
[TracePoint] [TracePoint]
@ -352,7 +351,7 @@ sufficient information, see the ChangeLog file or Redmine
[Modified methods] [Modified methods]
* BigDecimal() accepts new keywords "exception:" likewise Float(). * BigDecimal() accepts new keyword "exception:" similar to Float().
[Bundler] [Bundler]
@ -402,13 +401,13 @@ sufficient information, see the ChangeLog file or Redmine
[New methods] [New methods]
* Matrix#antisymmetric? / #skew_symmetric? * Matrix#antisymmetric?, Matrix#skew_symmetric?
* Matrix#map! / #collect! [Feature #14151] * Matrix#map!, Matrix#collect! [Feature #14151]
* Matrix#[]= * Matrix#[]=
* Vector#map! / #collect! * Vector#map!, Vector#collect!
* Vector#[]= * Vector#[]=
@ -429,7 +428,7 @@ sufficient information, see the ChangeLog file or Redmine
[Psych] [Psych]
* Upgrade Psych 3.1.0.pre2 * Upgrade to Psych 3.1.0.pre2
[REXML] [REXML]
@ -476,7 +475,7 @@ sufficient information, see the ChangeLog file or Redmine
[RubyGems] [RubyGems]
* Upgrade RubyGems 3.0.0.beta3 * Upgrade to RubyGems 3.0.0.beta3
[Set] [Set]
@ -543,8 +542,8 @@ sufficient information, see the ChangeLog file or Redmine
[Pathname] [Pathname]
* Pathname.read, Pathname.binread, Pathname.write, Pathname.binwrite, * Pathname#read, Pathname#binread, Pathname#write, Pathname#binwrite,
Pathname#each_line and Pathname.readlines do not invoke external Pathname#each_line and Pathname#readlines do not invoke external
commands even if the path starts with the pipe character <code>'|'</code>. commands even if the path starts with the pipe character <code>'|'</code>.
This follows [Feature #14245]. This follows [Feature #14245].