From 917b4c45fd76319a48c25b00187040f3d189bb35 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Sun, 23 Oct 2022 16:38:31 -0400 Subject: Added more links to docs --- src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8b9ac0d..e499ea2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,8 +21,8 @@ //! * [`Expect`] is a type alias for [`Exun`]. //! //! * Clearly mark errors that you don't expect to occur by calling -//! `Result::unexpect`. If the error type doesn't implement `Error`, you can still -//! use `Result::unexpect_msg`, as long as it implements +//! [`Result::unexpect`]. If the error type doesn't implement `Error`, you can +//! still use [`Result::unexpect_msg`], as long as it implements //! `Debug + Display + Send + Sync + 'static`. //! //! ## Usage @@ -42,10 +42,10 @@ //! * `std`: This automatically enables `alloc`. It's used for the standard //! library's [`Error`] type. Using this type allows more errors to be converted //! into [`Exun`] and [`RawUnexpected`] errors automatically, and it's needed for -//! `Result::unexpect`. +//! [`Result::unexpect`]. //! //! * `alloc`: This is needed for [`Expect`], [`RawUnexpected`] and -//! [`UnexpectedError`], as well as `Result::unexpected_msg`. +//! [`UnexpectedError`], as well as [`Result::unexpect_msg`]. //! //! To disable these features: //! @@ -132,7 +132,9 @@ //! } //! ``` //! -//! [`Error`]: `std::error::Error +//! [`Error`]: `std::error::Error` +//! [`Result::unexpect`]: `ResultErrorExt::unexpect` +//! [`Result::unexpect_msg`]: `ResultMsgExt::unexpect_msg` //! #[cfg(all(feature = "alloc", not(feature = "std")))] -- cgit v1.2.3