1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
hsbt 2015-05-16 12:38:11 +00:00
parent ec0a083d93
commit cff3676c94
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat May 16 21:38:05 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* enum.c: fix a sample code. Patch by @eagletmt
[fix GH-901][ci skip]
Sat May 16 21:17:11 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* gc.c (rb_data_object_wrap, rb_data_typed_object_wrap): rename

2
enum.c
View file

@ -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]
*
*/