Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
asmello authored Oct 15, 2024
1 parent bbebe73 commit e704586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ impl Deref for PointerBuf {
impl From<PointerBuf> for Box<Pointer> {
fn from(value: PointerBuf) -> Self {
let s = value.0.into_boxed_str();
// SAFETY> we ensure that the layout of `str` is the same as `Pointer`
// SAFETY: we ensure that the layout of `str` is the same as `Pointer`
unsafe { Box::from_raw(Box::into_raw(s) as *mut Pointer) }
}
}
Expand Down

0 comments on commit e704586

Please sign in to comment.