From 377f69e4fef4c9fd11934a19c672606875036a19 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 30 Sep 2016 09:43:24 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ doc/syntax/control_expressions.rdoc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2231eb3512..69233d0a77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 30 18:43:20 2016 Jason Yeo + + * 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 * lib/yaml/store.rb (YAML::Store#dump): use table argument instead diff --git a/doc/syntax/control_expressions.rdoc b/doc/syntax/control_expressions.rdoc index 123b48b6b9..65f7b431e3 100644 --- a/doc/syntax/control_expressions.rdoc +++ b/doc/syntax/control_expressions.rdoc @@ -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?