From 221a90ccb7793e51129d52e1098174357f45ba7f Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 26 Sep 2023 15:02:34 +0200 Subject: [PATCH] Fix doc link. --- std/src/panic.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/std/src/panic.rs b/std/src/panic.rs index 54ab433d8209e..e2d182b4ba07e 100644 --- a/std/src/panic.rs +++ b/std/src/panic.rs @@ -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. /// @@ -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> {