Actions
Bug #20982
closedInconsistency between Hash#inspect and ENV.inspect in Ruby 3.4
Description
Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets
ruby -e 'p({"a"=>"b"})'
{"a" => "b"}
The output of ENV.inspect
is very similar to Hash#inspect
, but does not include the whitespace
ruby -e 'p ENV'
{"SHELL"=>"/bin/bash", [...] }
Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent.
Actions
Like0
Like0Like0Like0Like0Like0