Skip to content

Commit

Permalink
[DOC] Return *args to Enumerable method definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
zverok committed Feb 19, 2023
1 parent ce0f3de commit 976cc38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions enum.c
Expand Up @@ -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+:
*
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 976cc38

Please sign in to comment.