summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBotahamec <botahamec@outlook.com>2022-10-23 16:36:21 -0400
committerBotahamec <botahamec@outlook.com>2022-10-23 16:36:21 -0400
commitd930f7e176e60479d8761cc3dddb16c262bb2811 (patch)
treee42aa8e701453a2e9112765754d530d19ebcdd3e /src
parentd9764ab154bba91ccffeec8e5e54381d40e485cf (diff)
Documentation changes
Diffstat (limited to 'src')
-rw-r--r--src/exun.rs2
-rw-r--r--src/result.rs6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/exun.rs b/src/exun.rs
index d2ef1eb..7f6376e 100644
--- a/src/exun.rs
+++ b/src/exun.rs
@@ -8,7 +8,7 @@ use crate::{RawUnexpected, UnexpectedError};
pub use Exun::{Expected, Unexpected};
-/// `Expect` is a type that represents either the expected error type
+/// `Exun` is a type that represents either the expected error type
/// ([`Expected`]) or an unexpected type ([`Unexpected`]).
///
/// See the [crate documentation](crate) for details.
diff --git a/src/result.rs b/src/result.rs
index 2b8921c..dfcb7ef 100644
--- a/src/result.rs
+++ b/src/result.rs
@@ -10,6 +10,9 @@ mod sealed {
use sealed::Sealed;
+/// Provides [`Result::unexpect`]
+///
+/// [`Result::unexpect`]: `ResultErrorExt::unexpect`
#[cfg(feature = "std")]
pub trait ResultErrorExt<T>: Sealed {
/// Converts `Result<T, E>` to `Result<T, RawUnexpected>`.
@@ -62,6 +65,9 @@ impl<T, E: Error + Send + Sync + 'static> ResultErrorExt<T> for Result<T, E> {
}
}
+/// Provides [`Result::unexpect_msg`]
+///
+/// [`Result::unexpect_msg`]: `ResultMsgExt::unexpect_msg`
pub trait ResultMsgExt<T>: Sealed {
/// Converts `Result<T, E>` to `Result<T, RawUnExpected>`.
///