Skip to content

Commit

Permalink
Merge pull request #35 from saethlin/fix-aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Feb 6, 2022
2 parents afd5b0a + 56590e3 commit 2db7229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
//! if *hole_guard.value >= hole_guard.v[i] {
//! // move the element back and the hole forward
//! let index = hole_guard.index;
//! ptr::copy_nonoverlapping(&hole_guard.v[index + 1], &mut hole_guard.v[index], 1);
//! hole_guard.v.swap(index, index + 1);
//! hole_guard.index += 1;
//! } else {
//! break;
Expand Down

0 comments on commit 2db7229

Please sign in to comment.