Skip to content

Commit

Permalink
fix: typo in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Jun 28, 2024
1 parent 4d6e73e commit 231090d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eyre/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ impl dyn EyreHandler {
t == concrete
}

/// Downcast the handler to a contcrete type `T`
/// Downcast the handler to a concrete type `T`
pub fn downcast_ref<T: EyreHandler>(&self) -> Option<&T> {
if self.is::<T>() {
unsafe { Some(&*(self as *const dyn EyreHandler as *const T)) }
Expand All @@ -645,7 +645,7 @@ impl dyn EyreHandler {
}
}

/// Downcast the handler to a contcrete type `T`
/// Downcast the handler to a concrete type `T`
pub fn downcast_mut<T: EyreHandler>(&mut self) -> Option<&mut T> {
if self.is::<T>() {
unsafe { Some(&mut *(self as *mut dyn EyreHandler as *mut T)) }
Expand Down

0 comments on commit 231090d

Please sign in to comment.