mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* doc/syntax/control_expressions.rdoc: Add missing 'as'
[ci skip][fix GH-1448] Patch by @jsyeo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64f11d8139
commit
377f69e4fe
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 30 18:43:20 2016 Jason Yeo <jason@jasonyeo.me>
|
||||
|
||||
* 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@mbf.nifty.com>
|
||||
|
||||
* lib/yaml/store.rb (YAML::Store#dump): use table argument instead
|
||||
|
|
|
@ -405,8 +405,8 @@ Use +next+ to skip the rest of the current iteration:
|
|||
|
||||
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?
|
||||
|
|
Loading…
Reference in a new issue