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

Lines changed: 2 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy