Correct documented return values for certain ENV methods (#2620)

This commit is contained in:
Burdette Lamar 2019-11-02 01:32:49 -05:00 коммит произвёл Nobuyoshi Nakada
Родитель e6f0fd8af4
Коммит 772b0613c5
1 изменённых файлов: 8 добавлений и 8 удалений

16
hash.c
Просмотреть файл

@ -5194,7 +5194,7 @@ rb_env_size(VALUE ehash, VALUE args, VALUE eobj)
/* /*
* call-seq: * call-seq:
* ENV.each_key { |name| block } -> Hash * ENV.each_key { |name| block } -> ENV
* ENV.each_key -> Enumerator * ENV.each_key -> Enumerator
* *
* Yields each environment variable name. * Yields each environment variable name.
@ -5249,7 +5249,7 @@ env_f_values(VALUE _)
/* /*
* call-seq: * call-seq:
* ENV.each_value { |value| block } -> Hash * ENV.each_value { |value| block } -> ENV
* ENV.each_value -> Enumerator * ENV.each_value -> Enumerator
* *
* Yields each environment variable +value+. * Yields each environment variable +value+.
@ -5351,7 +5351,7 @@ env_reject_bang(VALUE ehash)
/* /*
* call-seq: * call-seq:
* ENV.delete_if { |name, value| block } -> Hash * ENV.delete_if { |name, value| block } -> ENV
* ENV.delete_if -> Enumerator * ENV.delete_if -> Enumerator
* *
* Deletes every environment variable for which the block evaluates to +true+. * Deletes every environment variable for which the block evaluates to +true+.
@ -5461,7 +5461,7 @@ env_select_bang(VALUE ehash)
/* /*
* call-seq: * call-seq:
* ENV.keep_if { |name, value| block } -> Hash * ENV.keep_if { |name, value| block } -> ENV
* ENV.keep_if -> Enumerator * ENV.keep_if -> Enumerator
* *
* Deletes every environment variable where the block evaluates to +false+. * Deletes every environment variable where the block evaluates to +false+.
@ -5975,10 +5975,10 @@ env_update_i(VALUE key, VALUE val, VALUE _)
/* /*
* call-seq: * call-seq:
* ENV.update(hash) -> Hash * ENV.update(hash) -> ENV
* ENV.update(hash) { |name, old_value, new_value| block } -> Hash * ENV.update(hash) { |name, old_value, new_value| block } -> ENV
* ENV.merge!(hash) -> Hash * ENV.merge!(hash) -> ENV
* ENV.merge!(hash) { |name, old_value, new_value| block } -> Hash * ENV.merge!(hash) { |name, old_value, new_value| block } -> ENV
* *
* Adds the contents of +hash+ to the environment variables. If no block is * Adds the contents of +hash+ to the environment variables. If no block is
* specified entries with duplicate keys are overwritten, otherwise the value * specified entries with duplicate keys are overwritten, otherwise the value