diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-30 16:38:32 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-30 16:38:32 +0000 |
commit | 349f4e7db766e618d606768d5ead8cbc9f4ef74f (patch) | |
tree | 37c299cb289d0563962400250d7f7b9a30a0986c /array.c | |
parent | 5e6d81e717879424edc46cda993799d8de7aa635 (diff) | |
download | ruby-349f4e7db766e618d606768d5ead8cbc9f4ef74f.tar.gz |
Add RDoc for kernel functions, and tidy up
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1727,7 +1727,7 @@ rb_values_at(obj, olen, argc, argv, func) * Returns an array containing the elements in * _self_ corresponding to the given selector(s). The selectors * may be either integer indices or ranges. - * See also </code>.select<code>. + * See also <code>.select</code>. * * a = %w{ a b c d e f } * a.values_at(1, 3, 5) @@ -1754,9 +1754,6 @@ rb_ary_values_at(argc, argv, ary) * returns a true value (equivalent to <code>Enumerable#select</code>). * * a = %w{ a b c d e f } - * a.select(1, 3, 5) #=> ["b", "d", "f"] - * a.select(1, 3, 5, 7) #=> ["b", "d", "f", nil] - * a.select(-1, -3, -5, -7) #=> ["f", "d", "b", nil] * a.select {|v| v =~ /[aeiou]/} #=> ["a", "e"] */ |