Skip to content

Commit 770fded

Browse files
authored
Stabilize 'entry_and_modify' feature for BTreeMap
1 parent 16362c7 commit 770fded

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/liballoc/btree/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,6 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
21142114
/// # Examples
21152115
///
21162116
/// ```
2117-
/// #![feature(entry_and_modify)]
21182117
/// use std::collections::BTreeMap;
21192118
///
21202119
/// let mut map: BTreeMap<&str, usize> = BTreeMap::new();
@@ -2129,7 +2128,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
21292128
/// .or_insert(42);
21302129
/// assert_eq!(map["poneyland"], 43);
21312130
/// ```
2132-
#[unstable(feature = "entry_and_modify", issue = "44733")]
2131+
#[stable(feature = "entry_and_modify", since = "1.25.0")]
21332132
pub fn and_modify<F>(self, mut f: F) -> Self
21342133
where F: FnMut(&mut V)
21352134
{

0 commit comments

Comments
 (0)