Skip to content

🐛 Fix SequenceSet#include? handling of invalid inputs #479

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

Merged
merged 2 commits into from
May 31, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented May 31, 2025

The rdoc said it returned false, but it actually crashed. It's sometimes useful to make the distinction between invalid input and valid input with a false return value, so I've updated so invalid input returns nil (and updated the rdoc to match).

Also, some of the rdoc examples were simply wrong. Maybe a copy/paste error from #intersect?

nevans added 2 commits May 31, 2025 09:05
The rdoc said it returned `false`, but it actually crashed.  I've
fixed it to return `nil` and modified the docs to match.
@nevans nevans changed the title 🐛 Fix SequenceSet#include?: handling invalid inputs, bad rdoc example 🐛 Fix SequenceSet#include? handling of invalid inputs May 31, 2025
@nevans nevans merged commit 8c5bdc9 into master May 31, 2025
37 checks passed
@nevans nevans deleted the sequence_set/fix-include_p-invalid-input branch May 31, 2025 17:18
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.

1 participant