Skip to content

Commit 9b33825

Browse files
Update src/map.rs
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
1 parent e9751e7 commit 9b33825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ impl<K, V, S, A: Allocator + Clone> HashMap<K, V, S, A> {
883883
/// // Map is empty.
884884
/// assert!(a.is_empty());
885885
/// // But map capacity is equal to old one.
886-
/// assert!(a.capacity() == capacity_before_clear);
886+
/// assert_eq!(a.capacity(), capacity_before_clear);
887887
/// ```
888888
#[cfg_attr(feature = "inline-more", inline)]
889889
pub fn clear(&mut self) {

0 commit comments

Comments
 (0)