aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 11:20:08 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 11:20:08 +0000
commita85cc18e192fa03d8463dd15a7048defbc7e1ab5 (patch)
tree53d5dd0f60da7d74c0a5b5e37e5c16392ff7fbed /hash.c
parentbbdd5fa7a9e7845bef3a089c901858287cea3eba (diff)
downloadruby-a85cc18e192fa03d8463dd15a7048defbc7e1ab5.tar.gz
[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
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index d8d08e5b36..c23b348f24 100644
--- a/hash.c
+++ b/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.
*/