mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add missing word in transform_values methods description
Explicitly says that the methods return a new hash rather than just stating it return a new something we don't know. [ci skip] [Fix GH-1619] Author: Nicolas Cavigneaux <nico@bounga.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c208d15ff7
commit
b4c2008817
1 changed files with 2 additions and 2 deletions
4
hash.c
4
hash.c
|
@ -1809,7 +1809,7 @@ transform_values_i(VALUE key, VALUE value, VALUE result)
|
|||
* hsh.transform_values {|value| block } -> hsh
|
||||
* hsh.transform_values -> an_enumerator
|
||||
*
|
||||
* Return a new with the results of running block once for every value.
|
||||
* Return a new hash with the results of running block once for every value.
|
||||
* This method does not change the keys.
|
||||
*
|
||||
* h = { a: 1, b: 2, c: 3 }
|
||||
|
@ -1839,7 +1839,7 @@ rb_hash_transform_values(VALUE hash)
|
|||
* hsh.transform_values! {|value| block } -> hsh
|
||||
* hsh.transform_values! -> an_enumerator
|
||||
*
|
||||
* Return a new with the results of running block once for every value.
|
||||
* Return a new hash with the results of running block once for every value.
|
||||
* This method does not change the keys.
|
||||
*
|
||||
* h = { a: 1, b: 2, c: 3 }
|
||||
|
|
Loading…
Add table
Reference in a new issue