summaryrefslogtreecommitdiff
path: root/include/ruby/internal/arithmetic
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-11-09 09:59:25 -0800
committerJeremy Evans <code@jeremyevans.net>2023-03-24 10:55:13 -0700
commit5d6579bd9129cfbd62702fb42b249338807a34a2 (patch)
tree0b044ca2faae821f4cd465e65e696ffc130fb131 /include/ruby/internal/arithmetic
parent1b13db25d8ed0f328acc4e86668f8ad7deae7221 (diff)
Change Hash#compact to keep default values and compare_by_identity flag
The documentation states it returns a copy of self with nil value entries removed. However, the previous behavior was creating a plain new hash with non-nil values copied into it. This change aligns the behavior with the documentation. Fixes [Bug #19113]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6702
Diffstat (limited to 'include/ruby/internal/arithmetic')
0 files changed, 0 insertions, 0 deletions