diff options
author | Jeremy Evans <[email protected]> | 2019-09-20 12:18:07 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-09-20 12:18:07 -0700 |
commit | 27144de2bd95c5886c3d4400c3b8aea932b856f1 (patch) | |
tree | b6d142bf2adf362d9f7f8da73e1b0263cd718094 /hash.c | |
parent | 7aeacb213bdf40bab4393448023930eac35d127a (diff) |
Fix documentation for ENV.each to return ENV
Also have spec check that it returns ENV.
Mostly from [email protected] (Burdette Lamar).
Fixes [Bug #16164]
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5276,9 +5276,9 @@ env_each_value(VALUE ehash) /* * call-seq: - * ENV.each { |name, value| block } -> Hash + * ENV.each { |name, value| block } -> ENV * ENV.each -> Enumerator - * ENV.each_pair { |name, value| block } -> Hash + * ENV.each_pair { |name, value| block } -> ENV * ENV.each_pair -> Enumerator * * Yields each environment variable +name+ and +value+. |