mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8987431408
commit
0744b375b8
1 changed files with 1 additions and 1 deletions
2
enum.c
2
enum.c
|
@ -637,7 +637,7 @@ enum_to_h_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash))
|
|||
* # => {:hello => 0, :world => 1}
|
||||
*
|
||||
* If a block is given, the results of the block on each element of
|
||||
* the array will be used as pairs.
|
||||
* the enum will be used as pairs.
|
||||
*
|
||||
* (1..5).to_h {|x| [x, x ** 2]}
|
||||
* #=> {1=>1, 2=>4, 3=>9, 4=>16, 5=>25}
|
||||
|
|
Loading…
Reference in a new issue