aboutsummaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-25 15:14:38 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-25 15:14:38 +0000
commite949afa837935dfdb7c25a3589f2d1ff76367ccf (patch)
tree4650eee73463bff08f65375d25f1a5f1788cb0e0 /hash.c
parentfcba3d7da8425d4a4064bb186e54e07470579be0 (diff)
downloadruby-e949afa837935dfdb7c25a3589f2d1ff76367ccf.tar.gz
hash.c: docs for Hash#transform_values
* hash.c: [DOC] fix return value in call-seq of Hash#transform_values; other small fixes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 90c2d06d05..61ca381ac7 100644
--- a/hash.c
+++ b/hash.c
@@ -1806,10 +1806,11 @@ transform_values_i(VALUE key, VALUE value, VALUE result)
/*
* call-seq:
- * hsh.transform_values {|value| block } -> hsh
+ * hsh.transform_values {|value| block } -> new_hash
* hsh.transform_values -> an_enumerator
*
- * Return a new hash with the results of running block once for every value.
+ * Returns a new hash with the results of running the block once for
+ * every value.
* This method does not change the keys.
*
* h = { a: 1, b: 2, c: 3 }