jmitchell / multiset

Multiset/bag implementation in Rust
Apache License 2.0
9 stars 9 forks source link

Maintain size in remove all #21

Closed HarrisonMc555 closed 4 years ago

HarrisonMc555 commented 4 years ago

I found a bug in the remove_all function where the size was not decreased. This simply decreases the size by the amount removed.