summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-24 21:53:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-24 21:53:59 +0900
commit189f154786fd6392633fefd50bd76e9bdb401b52 (patch)
tree9ff6f6b59306430a07e3a0c0d7859a2c4647fefe /hash.c
parentfb978fab6d51c3ec0114098f0195fcef9bfc6efc (diff)
downloadruby-189f154786fd6392633fefd50bd76e9bdb401b52.tar.gz
[DOC] fixed return value of ENV.clone [ci skip]
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index ca80e7ea1d..cf19cdb5e6 100644
--- a/hash.c
+++ b/hash.c
@@ -6489,10 +6489,10 @@ env_update(VALUE env, VALUE hash)
/*
* call-seq:
- * ENV.clone(freeze: nil) -> copy of ENV
+ * ENV.clone(freeze: nil) -> ENV
*
- * Returns a clone of ENV, but warns because the ENV data is shared with the
- * clone.
+ * Returns ENV itself, and warns because ENV is a wrapper for the
+ * process-wide environment variables and a clone is useless.
* If +freeze+ keyword is given and not +nil+ or +false+, raises ArgumentError.
* If +freeze+ keyword is given and +true+, raises TypeError, as ENV storage
* cannot be frozen.