summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-30 16:38:32 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-30 16:38:32 +0000
commite8c88007403d6892df7464ad443bd6bacab0546d (patch)
tree05fc392080ae4257df67782f72ad344e500307bb /array.c
parentfbfe706aee4f10560f669e48b51a942aaa206e73 (diff)
Add RDoc for kernel functions, and tidy up
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/array.c b/array.c
index bbf2f6e633..4b9321cc02 100644
--- a/array.c
+++ b/array.c
@@ -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"]
*/