Skip to content

Commit

Permalink
Fixed Hole::get marked as unsafe in exception-safety.md (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenspider authored Oct 17, 2023
1 parent ddfa421 commit 1842257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/exception-safety.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl<'a, T> Hole<'a, T> {
fn removed(&self) -> &T { self.elt.as_ref().unwrap() }
unsafe fn get(&self, index: usize) -> &T { &self.data[index] }
fn get(&self, index: usize) -> &T { &self.data[index] }
unsafe fn move_to(&mut self, index: usize) {
let index_ptr: *const _ = &self.data[index];
Expand Down

0 comments on commit 1842257

Please sign in to comment.