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 authored Jun 28, 2024
1 parent 4d6e73e commit 3319ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit 3319ffb

Please sign in to comment.