Skip to content

Commit

Permalink
Hide cfg from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkazik committed Dec 31, 2023
1 parent 5cfd295 commit 83f60e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/eq.rs
Expand Up @@ -30,14 +30,14 @@ impl<K: PartialEq, V: PartialEq, const N: usize> PartialEq for Map<K, V, N> {
/// let mut m2: micromap::Map<u8, i32, 10> = micromap::Map::new();
/// m1.insert(1, 42);
/// m2.insert(1, 42);
/// #[cfg(std)]
/// # #[cfg(std)]
/// assert_eq!(m1, m2);
/// // two maps with different order of key-value pairs are still equal:
/// m1.insert(2, 1);
/// m1.insert(3, 16);
/// m2.insert(3, 16);
/// m2.insert(2, 1);
/// #[cfg(std)]
/// # #[cfg(std)]
/// assert_eq!(m1, m2);
/// ```
#[inline]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Expand Up @@ -34,7 +34,7 @@
//! let mut m : Map<u64, &str, 10> = Map::new();
//! m.insert(1, "Hello, world!");
//! m.insert(2, "Good bye!");
//! #[cfg(std)]
//! # #[cfg(std)]
//! assert_eq!(2, m.len());
//! ```
//!
Expand Down Expand Up @@ -76,7 +76,7 @@ use core::mem::MaybeUninit;
/// let mut m : micromap::Map<u64, &str, 8> = micromap::Map::new();
/// m.insert(1, "Jeff Lebowski");
/// m.insert(2, "Walter Sobchak");
/// #[cfg(std)]
/// # #[cfg(std)]
/// assert_eq!(2, m.len());
/// ```
///
Expand Down

0 comments on commit 83f60e2

Please sign in to comment.