summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 11:20:08 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-28 11:20:08 (GMT)
commit14638d854742054608b8fd5456c271d9ab1152f3 (patch)
tree53d5dd0f60da7d74c0a5b5e37e5c16392ff7fbed /hash.c
parentb3c70d4c7ed12ce3fea1746fbde922c61519177f (diff)
[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 d8d08e5..c23b348 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.
*/