Skip to content

Commit e9751e7

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

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
@@ -850,7 +850,7 @@ impl<K, V, S, A: Allocator + Clone> HashMap<K, V, S, A> {
850850
/// assert_eq!(evens, vec![0, 2, 4, 6]);
851851
/// assert_eq!(odds, vec![1, 3, 5, 7]);
852852
/// // Map capacity is equal to old one.
853-
/// assert!(map.capacity() == capacity_before_drain_filter);
853+
/// assert_eq!(map.capacity(), capacity_before_drain_filter);
854854
/// ```
855855
#[cfg_attr(feature = "inline-more", inline)]
856856
pub fn drain_filter<F>(&mut self, f: F) -> DrainFilter<'_, K, V, F, A>

0 commit comments

Comments
 (0)