Commit 8a70478
authored
[DOC] Fix outdated
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
```ENV::clone method description1 parent 5b5b5b3 commit 8a70478
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7610 | 7610 | | |
7611 | 7611 | | |
7612 | 7612 | | |
7613 | | - | |
| 7613 | + | |
7614 | 7614 | | |
7615 | 7615 | | |
7616 | 7616 | | |
| |||
0 commit comments