Skip to content

Commit

Permalink
Merge pull request #8 from sundy-li/fix-bound
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Nov 6, 2022
2 parents ed9ca02 + fe2a5e7 commit 8e3e1d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -55,7 +55,7 @@ pub fn partial_sort<T, F>(v: &mut [T], last: usize, mut is_less: F)
where
F: FnMut(&T, &T) -> bool,
{
debug_assert!(last <= v.len());
assert!(last <= v.len());

make_heap(v, last, &mut is_less);

Expand Down

0 comments on commit 8e3e1d6

Please sign in to comment.