[ruby-core:123490] [Ruby Bug#21641] Hash#to_s behaves different in 3.4