diff options
| author | Botahamec <botahamec@outlook.com> | 2022-10-23 13:39:58 -0400 |
|---|---|---|
| committer | Botahamec <botahamec@outlook.com> | 2022-10-23 13:39:58 -0400 |
| commit | b3a59407812b94a13fd83bf7fec36aac526359a1 (patch) | |
| tree | 27f9bf78f3a7c917bd2fa3db99b25d03881eecef /src/unexpected.rs | |
| parent | f4b5e2afc59a30687a0630504e233ecb63339783 (diff) | |
Updated docs
Diffstat (limited to 'src/unexpected.rs')
| -rw-r--r-- | src/unexpected.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexpected.rs b/src/unexpected.rs index 01ec82f..17e024d 100644 --- a/src/unexpected.rs +++ b/src/unexpected.rs @@ -78,7 +78,7 @@ impl RawUnexpected { /// ``` /// use exun::*; /// - /// let x = UnexpectedError::msg("failed"); + /// let x = RawUnexpected::msg("failed"); /// ``` pub fn msg<E: Display + Debug + Send + Sync + 'static>(e: E) -> Self { Self { @@ -99,10 +99,10 @@ impl RawUnexpected { /// use exun::*; /// /// let x = RawUnexpected::new(core::fmt::Error); - /// assert!(err.source().is_some()); + /// assert!(x.source().is_some()); /// /// let x = RawUnexpected::msg("failed"); - /// assert!(err.source().is_none()); + /// assert!(x.source().is_none()); /// ``` #[must_use] pub fn source(&self) -> Option<&(dyn Error + 'static)> { |
