Skip to content

Commit 221a90c

Browse files
committed
Fix doc link.
1 parent d6658a5 commit 221a90c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

std/src/panic.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ use crate::thread::Result;
1414
///
1515
/// `PanicInfo` structure is passed to a panic hook set by the [`set_hook`] function.
1616
///
17-
/// [`set_hook`]: ../../std/panic/fn.set_hook.html
18-
///
1917
/// There two `PanicInfo` types:
2018
/// - [`core::panic::PanicInfo`], which is used as an argument to a `#[panic_handler]` in `#![no_std]` programs.
21-
/// - `std::panic::PanicInfo`, which is used as an argument to a panic hook set by [`std::panic::set_hook`].
19+
/// - `std::panic::PanicInfo`, which is used as an argument to a panic hook set by [`set_hook`].
2220
///
2321
/// This is the second one.
2422
///
@@ -35,6 +33,7 @@ use crate::thread::Result;
3533
/// ```
3634
///
3735
/// [`core::panic::PanicInfo`]: ../../core/panic/struct.PanicInfo.html
36+
/// [`set_hook`]: ../../std/panic/fn.set_hook.html
3837
#[stable(feature = "panic_hooks", since = "1.10.0")]
3938
#[derive(Debug)]
4039
pub struct PanicInfo<'a> {

0 commit comments

Comments
 (0)