ruby-changes:38427
From: hsbt <ko1@a...>
Date: Sat, 16 May 2015 21:38:29 +0900 (JST)
Subject: [ruby-changes:38427] hsbt:r50508 (trunk): * enum.c: fix a sample code. Patch by @eagletmt
hsbt 2015-05-16 21:38:11 +0900 (Sat, 16 May 2015) New Revision: 50508 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50508 Log: * enum.c: fix a sample code. Patch by @eagletmt [fix GH-901][ci skip] Modified files: trunk/ChangeLog trunk/enum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 50507) +++ ChangeLog (revision 50508) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat May 16 21:38:05 2015 SHIBATA Hiroshi <hsbt@r...> + + * enum.c: fix a sample code. Patch by @eagletmt + [fix GH-901][ci skip] + Sat May 16 21:17:11 2015 Nobuyoshi Nakada <nobu@r...> * gc.c (rb_data_object_wrap, rb_data_typed_object_wrap): rename Index: enum.c =================================================================== --- enum.c (revision 50507) +++ enum.c (revision 50508) @@ -103,7 +103,7 @@ enum_grep(VALUE obj, VALUE pat) https://github.com/ruby/ruby/blob/trunk/enum.c#L103 * * (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] * */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/