Mention that the panic hook will always run
This commit is contained in:
parent
179539f6eb
commit
78e06adca7
2 changed files with 6 additions and 5 deletions
|
@ -395,7 +395,7 @@ pub fn recover<F: FnOnce() -> R + UnwindSafe, R>(f: F) -> Result<R> {
|
|||
catch_unwind(f)
|
||||
}
|
||||
|
||||
/// Triggers a panic without invoking the panic handler.
|
||||
/// Triggers a panic without invoking the panic hook.
|
||||
///
|
||||
/// This is designed to be used in conjunction with `catch_unwind` to, for
|
||||
/// example, carry a panic across a layer of C code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue