mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-26 20:40:49 +00:00
fix: typo in doc comment
This commit is contained in:
parent
4d6e73e5a9
commit
231090d5f6
@ -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)) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user