mccolljr / segvec

SegVec data structure for rust. Similar to Vec, but allocates memory in chunks of increasing size.
MIT License
33 stars 4 forks source link

Rename `checked_log2_ceil` #12

Closed mccolljr closed 3 years ago

mccolljr commented 3 years ago

It turns out that checked_log2_ceil is actually checked_log2_floor - this can be seen by calling checked_log2_ceil(3), which returns 1. This is the correct value for the implementation, but the name is misleading. I want to re-name this and document the behavior & implementation.

mccolljr commented 3 years ago

Fixed via 3662c13