summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2019-11-02 01:32:49 -0500
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-02 15:32:49 +0900
commit772b0613c583773cd2eda23bce8275926a351e79 (patch)
tree67dffe73e3b27ca342a310d89acf14e098d18e8f /hash.c
parente6f0fd8af4a326f97bf886c6c9911463ac12dc0c (diff)
Correct documented return values for certain ENV methods (#2620)
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/hash.c b/hash.c
index da4738b04c..0eb101e04a 100644
--- a/hash.c
+++ b/hash.c
@@ -5194,7 +5194,7 @@ rb_env_size(VALUE ehash, VALUE args, VALUE eobj)
/*
* call-seq:
- * ENV.each_key { |name| block } -> Hash
+ * ENV.each_key { |name| block } -> ENV
* ENV.each_key -> Enumerator
*
* Yields each environment variable name.
@@ -5249,7 +5249,7 @@ env_f_values(VALUE _)
/*
* call-seq:
- * ENV.each_value { |value| block } -> Hash
+ * ENV.each_value { |value| block } -> ENV
* ENV.each_value -> Enumerator
*
* Yields each environment variable +value+.
@@ -5351,7 +5351,7 @@ env_reject_bang(VALUE ehash)
/*
* call-seq:
- * ENV.delete_if { |name, value| block } -> Hash
+ * ENV.delete_if { |name, value| block } -> ENV
* ENV.delete_if -> Enumerator
*
* Deletes every environment variable for which the block evaluates to +true+.
@@ -5461,7 +5461,7 @@ env_select_bang(VALUE ehash)
/*
* call-seq:
- * ENV.keep_if { |name, value| block } -> Hash
+ * ENV.keep_if { |name, value| block } -> ENV
* ENV.keep_if -> Enumerator
*
* Deletes every environment variable where the block evaluates to +false+.
@@ -5975,10 +5975,10 @@ env_update_i(VALUE key, VALUE val, VALUE _)
/*
* call-seq:
- * ENV.update(hash) -> Hash
- * ENV.update(hash) { |name, old_value, new_value| block } -> Hash
- * ENV.merge!(hash) -> Hash
- * ENV.merge!(hash) { |name, old_value, new_value| block } -> Hash
+ * ENV.update(hash) -> ENV
+ * ENV.update(hash) { |name, old_value, new_value| block } -> ENV
+ * ENV.merge!(hash) -> ENV
+ * ENV.merge!(hash) { |name, old_value, new_value| block } -> ENV
*
* Adds the contents of +hash+ to the environment variables. If no block is
* specified entries with duplicate keys are overwritten, otherwise the value