Skip to content

Commit b6b621e

Browse files
committed
fix links
1 parent 9a9dafc commit b6b621e

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

library/std/src/error.rs

+13-11
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! * [`panic!`] and [`panic_any`] (Constructing, Propagated automatically)
2020
//! * [`PanicInfo`] (Reporting)
21-
//! * [`set_hook`], [`take_hook`], and [`#[panic_handler]`] (Reporting)
21+
//! * [`set_hook`], [`take_hook`], and [`#[panic_handler]`][panic-handler] (Reporting)
2222
//! * [`catch_unwind`] and [`resume_unwind`] (Discarding, Propagating)
2323
//!
2424
//! The following are the primary interfaces of the error system and the
@@ -27,8 +27,8 @@
2727
//! * [`Result`] (Propagating, Reacting)
2828
//! * The [`Error`] trait (Reporting)
2929
//! * User defined types (Constructing / Representing)
30-
//! * `match` and [`downcast`] (Reacting)
31-
//! * The propagation operator (`?`) (Propagating)
30+
//! * [`match`] and [`downcast`] (Reacting)
31+
//! * The question mark operator ([`?`]) (Propagating)
3232
//! * The partially stable [`Try`] traits (Propagating, Constructing)
3333
//! * [`Termination`] (Reporting)
3434
//!
@@ -39,8 +39,8 @@
3939
//! to a caller. For these situations the standard library provides APIs for
4040
//! constructing panics with an `Error` as it's source.
4141
//!
42-
//! * `Result::unwrap`
43-
//! * `Result::expect`
42+
//! * [`Result::unwrap`]
43+
//! * [`Result::expect`]
4444
//!
4545
//! These functions are equivalent, they either return the inner value if the
4646
//! `Result` is `Ok` or panic if the `Result` is `Err` printing the inner error
@@ -122,17 +122,19 @@
122122
//! "should" as in "env variable should be set by blah" or "the given binary
123123
//! should be available and executable by the current user".
124124
//!
125-
//! [panic hook]: crate::panic::set_hook
126-
//! [`set_hook`]: crate::panic::set_hook
127-
//! [`take_hook`]: crate::panic::take_hook
128-
//! [`PanicInfo`]: crate::panic::PanicInfo
129125
//! [`panic_any`]: crate::panic::panic_any
130-
//! [`#[panic_handler]`]: https://doc.rust-lang.org/nomicon/panic-handler.html
126+
//! [`PanicInfo`]: crate::panic::PanicInfo
131127
//! [`catch_unwind`]: crate::panic::catch_unwind
132128
//! [`resume_unwind`]: crate::panic::resume_unwind
129+
//! [`downcast`]: crate::error::Error
133130
//! [`Termination`]: crate::process::Termination
134131
//! [`Try`]: crate::ops::Try
135-
//! [`downcast`]: crate::error::Error
132+
//! [panic hook]: crate::panic::set_hook
133+
//! [`set_hook`]: crate::panic::set_hook
134+
//! [`take_hook`]: crate::panic::take_hook
135+
//! [panic-handler]: <https://doc.rust-lang.org/nomicon/panic-handler.html>
136+
//! [`match`]: ../../std/keyword.match.html
137+
//! [`?`]: ../../std/result/index.html#the-question-mark-operator-
136138
137139
#![stable(feature = "rust1", since = "1.0.0")]
138140

0 commit comments

Comments
 (0)