fix: typo in doc comment

This commit is contained in:
Freja Roberts 2024-06-28 10:58:09 +02:00 committed by Tei Leelo Roberts
parent 4d6e73e5a9
commit 231090d5f6

View File

@ -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)) }
@ -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)) }