fix doc tests

This commit is contained in:
BenjaminBrienen 2025-02-27 00:59:13 +01:00
parent bd7375a58f
commit b19ef6b046
37 changed files with 75 additions and 61 deletions

View file

@ -83,7 +83,8 @@ pub type RawMap<A> = hash_map::HashMap<TypeId, Box<A>, BuildHasherDefault<TypeId
/// (Here using the [`AnyMap`] convenience alias; the first line could use
/// <code>[anymap::Map][Map]::&lt;[core::any::Any]&gt;::new()</code> instead if desired.)
///
/// ```rust
/// ```
/// # use stdx::anymap;
#[doc = "let mut data = anymap::AnyMap::new();"]
/// assert_eq!(data.get(), None::<&i32>);
/// ```

View file

@ -34,7 +34,7 @@ macro_rules! format_to_acc {
///
/// # Example
///
/// ```rust
/// ```ignore
/// impl_from!(Struct, Union, Enum for Adt);
/// ```
#[macro_export]