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

Bitmap::flip does not require &mut self #85

Merged
merged 2 commits into from
May 8, 2022

Conversation

Dr-Emann
Copy link
Member

@Dr-Emann Dr-Emann commented Apr 28, 2022

Bitmap::flip and Bitmap::contains_range should only require &self, not &mut self. This should be a backwards compatible change, it only increases the set of programs accepted.

Additionally, try to remove mutability from examples where possible, to prevent this from happening again.

Also, correct the documentation of Bitmap::minimum and Bitmap::maximum

`Bitmap::flip` should only require `&self`, not `&mut self`. This should
be a backwards compatable change, it only increases the set of programs
accepted.

Additionally, try to remove mutablilty from examples where possible, to
prevent it from happening again
@saulius
Copy link
Member

saulius commented May 8, 2022

That's a great catch, thanks for your work once more!

@saulius saulius merged commit 040cfab into RoaringBitmap:master May 8, 2022
@Dr-Emann Dr-Emann deleted the non_mut_flip branch May 8, 2022 15:28
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.

None yet

2 participants