Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions library/std/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ static HOOK: RwLock<Hook> = RwLock::new(Hook::Default);
///
/// The panic hook is a global resource.
///
/// # Panics
/// # Aborts
///
/// Panics if called from a panicking thread.
/// Aborts if called from a panicking thread.
///
/// # Examples
///
Expand Down Expand Up @@ -158,9 +158,9 @@ pub fn set_hook(hook: Box<dyn Fn(&PanicHookInfo<'_>) + 'static + Sync + Send>) {
///
/// If the default hook is registered it will be returned, but remain registered.
///
/// # Panics
/// # Aborts
///
/// Panics if called from a panicking thread.
/// Aborts if called from a panicking thread.
///
/// # Examples
///
Expand Down Expand Up @@ -193,9 +193,9 @@ pub fn take_hook() -> Box<dyn Fn(&PanicHookInfo<'_>) + 'static + Sync + Send> {
/// [`take_hook`]: ./fn.take_hook.html
/// [`set_hook`]: ./fn.set_hook.html
///
/// # Panics
/// # Aborts
///
/// Panics if called from a panicking thread.
/// Aborts if called from a panicking thread.
///
/// # Examples
///
Expand Down
Loading