aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-30 09:43:24 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-30 09:43:24 +0000
commit09432caf4552af6a48141b5b4cd1d3b11f782394 (patch)
tree196bafd0483c2418989129c605f0f0066083957f /doc
parent2dd89d1daef7282ffd369f26db1bb7c2dc4dd350 (diff)
downloadruby-09432caf4552af6a48141b5b4cd1d3b11f782394.tar.gz
* 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
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/control_expressions.rdoc4
1 files changed, 2 insertions, 2 deletions
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?