From b3a59407812b94a13fd83bf7fec36aac526359a1 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Sun, 23 Oct 2022 13:39:58 -0400 Subject: Updated docs --- src/unexpected.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/unexpected.rs') 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: 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)> { -- cgit v1.2.3