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 | 23f64f48104e8dd87271c80aa98f1a46602e671a (patch) | |
| tree | 05fc392080ae4257df67782f72ad344e500307bb /array.c | |
| parent | d0ef16aedcba32ac725f7af2a5e54bf2836c413e (diff) | |
| download | ruby-23f64f48104e8dd87271c80aa98f1a46602e671a.tar.gz ruby-23f64f48104e8dd87271c80aa98f1a46602e671a.tar.xz ruby-23f64f48104e8dd87271c80aa98f1a46602e671a.zip | |
Add RDoc for kernel functions, and tidy up
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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"] */ |
