Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fenwick-model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ impl Weights {
// Ensure the search range is valid (low < high)
debug_assert!(low < high, "Invalid search range");

// Verify that prefix_sum is within the valid range of cumulative weights
// Verify that prefix_sum is within the valid range of cumulative
// weights
debug_assert!(
prefix_sum < self.prefix_sum(Some(high - 1)),
"'prefix_sum' is out of bounds"
Expand Down