ruby-changes:25713
From: marcandre <ko1@a...>
Date: Wed, 21 Nov 2012 00:04:01 +0900 (JST)
Subject: [ruby-changes:25713] marcandRe: r37770 (trunk): * array.c (rb_get_values_at): Improve rdoc
marcandre 2012-11-21 00:03:52 +0900 (Wed, 21 Nov 2012) New Revision: 37770 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37770 Log: * array.c (rb_get_values_at): Improve rdoc Modified files: trunk/array.c Index: array.c =================================================================== --- array.c (revision 37769) +++ array.c (revision 37770) @@ -2607,10 +2607,10 @@ * See also Array#select. * * a = %w{ a b c d e f } - * a.values_at(1, 3, 5) - * a.values_at(1, 3, 5, 7) - * a.values_at(-1, -3, -5, -7) - * a.values_at(1..3, 2...5) + * a.values_at(1, 3, 5) # => ["b", "d", "f"] + * a.values_at(1, 3, 5, 7) # => ["b", "d", "f", nil] + * a.values_at(-1, -2, -2, -7) # => ["f", "e", "e", nil] + * a.values_at(4..6, 3...6) # => ["e", "f", nil, "d", "e", "f"] */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/