aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-20 21:15:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-20 21:15:19 +0000
commit5b899d2e741d72412b3ef2afd91c9abd0b1356cd (patch)
tree3442165205747aacbc2493b8955efebd72607d38 /enum.c
parent38dc67623dfffee4b1d704b22a15e9b77844cdce (diff)
downloadruby-5b899d2e741d72412b3ef2afd91c9abd0b1356cd.tar.gz
enum.c: [DOC] Enumerable#uniq [ci skip]
* enum.c (enum_uniq): add rdoc, reference to Array#uniq. [Feature #11090] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/enum.c b/enum.c
index fb1150a8a4..f561a6845c 100644
--- a/enum.c
+++ b/enum.c
@@ -3811,6 +3811,10 @@ uniq_iter(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash))
* call-seq:
* enum.uniq -> new_ary
* enum.uniq { |item| ... } -> new_ary
+ *
+ * Returns a new array by removing duplicate values in +self+.
+ *
+ * See also Array#uniq.
*/
static VALUE