Skip to content

Commit d9114be

Browse files
authored
Fix documentation of the last_contiguous_range_len function
1 parent 7bf690c commit d9114be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • roaring/src/bitmap/store/array_store

roaring/src/bitmap/store/array_store/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub(crate) fn first_contiguous_range_len(slice: &[u16]) -> usize {
4141
len + 1 // +1 for the first element
4242
}
4343

44-
/// Return the first contiguous range of elements in a sorted slice.
44+
/// Return the last contiguous range of elements in a sorted slice.
4545
pub(crate) fn last_contiguous_range_len(slice: &[u16]) -> usize {
4646
let [rest @ .., last] = slice else {
4747
// Explicitly empty range

0 commit comments

Comments
 (0)