X-Git-Url: https://git.chrismorgan.info/verhoeff/blobdiff_plain/67417456c81ccc241cb0e7257d6ca3a955e1d29e..95453055eda4d3f730a2ce90d9fd3d61c789e9c5:/src/lib.rs diff --git a/src/lib.rs b/src/lib.rs index 69fb557..251edd8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -137,13 +137,14 @@ pub trait VerhoeffMut { /// /// ## Example /// - #[cfg_attr(feature = "alloc", doc = " ```")] - #[cfg_attr(not(feature = "alloc"), doc = " ```rust,ignore")] + /// ``` + /// # #[cfg(feature = "alloc")] { /// use verhoeff::VerhoeffMut; /// let mut digits = String::from("12345"); /// digits.push_verhoeff_check_digit(); /// assert_eq!(digits, "123451"); - #[doc = " ```"] // just to keep the Vim syntax highlighter happy. Silly, huh? + /// # } + /// ``` fn push_verhoeff_check_digit(&mut self); }