зеркало из https://github.com/github/ruby.git
[DOC] Fix typo in rdoc of `transform_values!` [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b3c70d4c7e
Коммит
14638d8547
2
hash.c
2
hash.c
|
@ -1948,7 +1948,7 @@ rb_hash_transform_values(VALUE hash)
|
|||
* h.transform_values! {|v| v * v + 1 } #=> { a: 2, b: 5, c: 10 }
|
||||
* h.transform_values!(&:to_s) #=> { a: "2", b: "5", c: "10" }
|
||||
* h.transform_values!.with_index {|v, i| "#{v}.#{i}" }
|
||||
* #=> { a: "1.0", b: "5.1", c: "10.2" }
|
||||
* #=> { a: "2.0", b: "5.1", c: "10.2" }
|
||||
*
|
||||
* If no block is given, an enumerator is returned instead.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче