ruby-changes:44224
From: hsbt <ko1@a...>
Date: Fri, 30 Sep 2016 18:43:29 +0900 (JST)
Subject: [ruby-changes:44224] hsbt:r56297 (trunk): * doc/syntax/control_expressions.rdoc: Add missing 'as'
hsbt 2016-09-30 18:43:24 +0900 (Fri, 30 Sep 2016) New Revision: 56297 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56297 Log: * doc/syntax/control_expressions.rdoc: Add missing 'as' [ci skip][fix GH-1448] Patch by @jsyeo Modified files: trunk/ChangeLog trunk/doc/syntax/control_expressions.rdoc Index: ChangeLog =================================================================== --- ChangeLog (revision 56296) +++ ChangeLog (revision 56297) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Sep 30 18:43:20 2016 Jason Yeo <jason@j...> + + * doc/syntax/control_expressions.rdoc: Add missing 'as' + [ci skip][fix GH-1448] Patch by @jsyeo + Thu Sep 29 23:38:04 2016 Kazuhiro NISHIYAMA <zn@m...> * lib/yaml/store.rb (YAML::Store#dump): use table argument instead Index: doc/syntax/control_expressions.rdoc =================================================================== --- doc/syntax/control_expressions.rdoc (revision 56296) +++ doc/syntax/control_expressions.rdoc (revision 56297) @@ -405,8 +405,8 @@ Use +next+ to skip the rest of the curre https://github.com/ruby/ruby/blob/trunk/doc/syntax/control_expressions.rdoc#L405 p result # prints [2, nil, 6] -+next+ accepts an argument that can be used the result of the current block -iteration: ++next+ accepts an argument that can be used as the result of the current +block iteration: result = [1, 2, 3].map do |value| next value if value.even? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/