Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kixunil committed Jan 10, 2022
1 parent 4aabbbd commit 540c783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secp256k1-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,15 +638,15 @@ fn abort_fallback(message: impl core::fmt::Display) -> ! {

/// Ensures that types both sides of cast stay in sync and only the constness changes.
///
/// This elliminates the risk that if we change the type signature of abort handler the cast
/// This eliminates the risk that if we change the type signature of abort handler the cast
/// silently converts the types and causes UB.
fn ptr_mut_to_const_cast<T>(ptr: *mut T) -> *const T {
ptr as _
}

/// Ensures that types both sides of cast stay in sync and only the constness changes.
///
/// This elliminates the risk that if we change the type signature of abort handler the cast
/// This eliminates the risk that if we change the type signature of abort handler the cast
/// silently converts the types and causes UB.
fn ptr_const_to_mut_cast<T>(ptr: *const T) -> *mut T {
ptr as _
Expand Down

0 comments on commit 540c783

Please sign in to comment.