Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Each key makes it's own list #3312

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Each key makes it's own list #3312

merged 1 commit into from
Sep 3, 2024

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Sep 3, 2024

This fixes a misunderstanding of how Hash.new(obj) works. That means each key gets the same instance of the list rather than a new list

Copy link
Contributor

@sandbergja sandbergja left a comment

Choose a reason for hiding this comment

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

Thanks, @jcoyne

This fixes a misunderstanding of how Hash.new(obj) works. That means each key gets the same instance of the list rather than a new list
@sandbergja sandbergja merged commit 067671d into main Sep 3, 2024
13 checks passed
@sandbergja sandbergja deleted the fix-bug branch September 3, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants