about summary refs log tree commit diff
path: root/library/std/src/panic.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2023-09-26 15:02:34 +0200
committerMara Bos <m-ou.se@m-ou.se>2024-06-11 15:46:59 +0200
commit331b8a3edde67eb2418e7d9c5c6ef8d9a2a8c0b8 (patch)
tree36f75941ba829ef4357c794a3b4e8a5042f5bef5 /library/std/src/panic.rs
parent16dfc6ddc114efa7174e2daa972916bbd2f67d87 (diff)
downloadrust-331b8a3edde67eb2418e7d9c5c6ef8d9a2a8c0b8.tar.gz
rust-331b8a3edde67eb2418e7d9c5c6ef8d9a2a8c0b8.zip
Fix doc link.
Diffstat (limited to 'library/std/src/panic.rs')
-rw-r--r--library/std/src/panic.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/std/src/panic.rs b/library/std/src/panic.rs
index 54ab433d820..e2d182b4ba0 100644
--- a/library/std/src/panic.rs
+++ b/library/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> {