summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-16 12:38:11 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-16 12:38:11 +0000
commitcff3676c945a14f44e3f922468cf9be6e07613aa (patch)
tree1637b9a652fa87a1085e705cc158e0b5e79ac2b2 /enum.c
parentec0a083d93f67ae354eddb0ec9bc4ab39b944394 (diff)
* enum.c: fix a sample code. Patch by @eagletmt
[fix GH-901][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index a7182f9..e15ca34 100644
--- a/enum.c
+++ b/enum.c
@@ -103,7 +103,7 @@ enum_grep(VALUE obj, VALUE pat)
*
* (1..10).grep_v 2..5 #=> [1, 6, 7, 8, 9, 10]
* res =(1..10).grep_v(2..5) { |v| v * 2 }
- * res #=> [1, 12, 14, 16, 18, 20]
+ * res #=> [2, 12, 14, 16, 18, 20]
*
*/