summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorzverok <zverok.offline@gmail.com>2023-02-18 14:37:16 +0200
committerVictor Shepelev <zverok.offline@gmail.com>2023-02-19 22:32:52 +0200
commit976cc3852b00560e48fe89b9c5ab77761e1d8f3b (patch)
tree6850664b88f61986e0efdc8e6d7b558b57a192f8 /enum.c
parentce0f3de032ea0dffbfd20dfbfe33453f65ec5a7c (diff)
downloadruby-976cc3852b00560e48fe89b9c5ab77761e1d8f3b.tar.gz
[DOC] Return *args to Enumerable method definitions
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/enum.c b/enum.c
index 391de0b337..e97fee2ef6 100644
--- a/enum.c
+++ b/enum.c
@@ -700,7 +700,7 @@ enum_flat_map(VALUE obj)
/*
* call-seq:
- * to_a -> array
+ * to_a(*args) -> array
*
* Returns an array containing the items in +self+:
*
@@ -746,8 +746,8 @@ enum_to_h_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash))
/*
* call-seq:
- * to_h -> hash
- * to_h {|element| ... } -> hash
+ * to_h(*args) -> hash
+ * to_h(*args) {|element| ... } -> hash
*
* When +self+ consists of 2-element arrays,
* returns a hash each of whose entries is the key-value pair