From aa58a684b7caea9ef3666b6df10bf13c1e11f6c8 Mon Sep 17 00:00:00 2001 From: marcandre Date: Tue, 20 Nov 2012 15:03:52 +0000 Subject: * array.c (rb_get_values_at): Improve rdoc git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'array.c') diff --git a/array.c b/array.c index 332a7711bd..bbe9f60e40 100644 --- a/array.c +++ b/array.c @@ -2607,10 +2607,10 @@ rb_get_values_at(VALUE obj, long olen, int argc, VALUE *argv, VALUE (*func) (VAL * 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 -- cgit v1.2.3