mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 18:26:19 +00:00
fix doc tests
This commit is contained in:
parent
bd7375a58f
commit
b19ef6b046
37 changed files with 75 additions and 61 deletions
|
|
@ -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]::<[core::any::Any]>::new()</code> instead if desired.)
|
||||
///
|
||||
/// ```rust
|
||||
/// ```
|
||||
/// # use stdx::anymap;
|
||||
#[doc = "let mut data = anymap::AnyMap::new();"]
|
||||
/// assert_eq!(data.get(), None::<&i32>);
|
||||
/// ```
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ macro_rules! format_to_acc {
|
|||
///
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// ```ignore
|
||||
/// impl_from!(Struct, Union, Enum for Adt);
|
||||
/// ```
|
||||
#[macro_export]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue