Fix stable(since) attribute for BTreeMap::remove_entry

This commit is contained in:
Jonas Platte 2020-04-26 12:31:05 +02:00 committed by GitHub
parent 019ab732ce
commit 35eae4bad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -930,7 +930,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
/// assert_eq!(map.remove_entry(&1), Some((1, "a")));
/// assert_eq!(map.remove_entry(&1), None);
/// ```
#[stable(feature = "btreemap_remove_entry", since = "1.44.0")]
#[stable(feature = "btreemap_remove_entry", since = "1.45.0")]
pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)>
where
K: Borrow<Q>,