Skip to content

Commit

Permalink
Fix doc link.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Jun 11, 2024
1 parent d6658a5 commit 221a90c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ use crate::thread::Result;
///
/// `PanicInfo` structure is passed to a panic hook set by the [`set_hook`] function.
///
/// [`set_hook`]: ../../std/panic/fn.set_hook.html
///
/// There two `PanicInfo` types:
/// - [`core::panic::PanicInfo`], which is used as an argument to a `#[panic_handler]` in `#![no_std]` programs.
/// - `std::panic::PanicInfo`, which is used as an argument to a panic hook set by [`std::panic::set_hook`].
/// - `std::panic::PanicInfo`, which is used as an argument to a panic hook set by [`set_hook`].
///
/// This is the second one.
///
Expand All @@ -35,6 +33,7 @@ use crate::thread::Result;
/// ```
///
/// [`core::panic::PanicInfo`]: ../../core/panic/struct.PanicInfo.html
/// [`set_hook`]: ../../std/panic/fn.set_hook.html
#[stable(feature = "panic_hooks", since = "1.10.0")]
#[derive(Debug)]
pub struct PanicInfo<'a> {
Expand Down

0 comments on commit 221a90c

Please sign in to comment.