diff options
| author | Yaroslav <iaroslav2k@gmail.com> | 2025-08-24 01:46:32 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-24 06:46:32 +0900 |
| commit | 8a704783f87cfc3be44cfa147bb7d79f469db0ff (patch) | |
| tree | ca262003d531c12bf8861708983a933148319f79 /ext/socket | |
| parent | 5b5b5b3af555a0349c3d7e4e2a50f36ecd848560 (diff) | |
[DOC] Fix outdated `ENV::clone` method description
It does raise an exception rather than just issuing a warning:
```shell
$ docker run -e ALL_RUBY_SINCE=2.7 --rm rubylang/all-ruby ./all-ruby -We 'ENV.clone'
ruby-2.7.0
...
ruby-3.0.7
ruby-3.1.0-preview1 -e:1: warning: ENV.clone is deprecated; use ENV.to_h instead
...
ruby-3.2.0-preview1 -e:1: warning: ENV.clone is deprecated; use ENV.to_h instead
ruby-3.2.0-preview2 -e:1:in `clone': Cannot clone ENV, use ENV.to_h to get a copy of ENV as a hash (TypeError)
from -e:1:in `<main>'
exit 1
...
ruby-3.3.9 -e:1:in `clone': Cannot clone ENV, use ENV.to_h to get a copy of ENV as a hash (TypeError)
from -e:1:in `<main>'
exit 1
ruby-3.4.0-preview1 -e:1:in 'clone': Cannot clone ENV, use ENV.to_h to get a copy of ENV as a hash (TypeError)
from -e:1:in '<main>'
exit 1
...
ruby-3.5.0-preview1 -e:1:in 'clone': Cannot clone ENV, use ENV.to_h to get a copy of ENV as a hash (TypeError)
from -e:1:in '<main>'
exit 1
```
Diffstat (limited to 'ext/socket')
0 files changed, 0 insertions, 0 deletions
