mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Return *args to Enumerable method definitions
This commit is contained in:
parent
ce0f3de032
commit
976cc3852b
Notes:
git
2023-02-19 20:33:12 +00:00
1 changed files with 3 additions and 3 deletions
6
enum.c
6
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue