Skip to content

Conversation

HertzDevil
Copy link
Contributor

Fixes #14425

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:collection labels Apr 3, 2024
Copy link
Member

@straight-shoota straight-shoota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice to see some significant code reduction. I guess it was good idea to optimize for the insert case specifically, but as we know now, that didn't work out.

@straight-shoota straight-shoota added this to the 1.12.0 milestone Apr 3, 2024
@straight-shoota straight-shoota merged commit 8ca32e8 into crystal-lang:master Apr 4, 2024
@HertzDevil HertzDevil deleted the bug/hash-put-if-absent-duplicate branch April 5, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:collection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hash#put_if_absent can put duplicate keys

3 participants