Skip to content

Commit 862132b

Browse files
authored
Stabilize 'entry_and_modify' feature for HashMap
1 parent 770fded commit 862132b

File tree

1 file changed

+1
-2
lines changed
  • src/libstd/collections/hash

1 file changed

+1
-2
lines changed

src/libstd/collections/hash/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,7 +2066,6 @@ impl<'a, K, V> Entry<'a, K, V> {
20662066
/// # Examples
20672067
///
20682068
/// ```
2069-
/// #![feature(entry_and_modify)]
20702069
/// use std::collections::HashMap;
20712070
///
20722071
/// let mut map: HashMap<&str, u32> = HashMap::new();
@@ -2081,7 +2080,7 @@ impl<'a, K, V> Entry<'a, K, V> {
20812080
/// .or_insert(42);
20822081
/// assert_eq!(map["poneyland"], 43);
20832082
/// ```
2084-
#[unstable(feature = "entry_and_modify", issue = "44733")]
2083+
#[stable(feature = "entry_and_modify", since = "1.25.0")]
20852084
pub fn and_modify<F>(self, mut f: F) -> Self
20862085
where F: FnMut(&mut V)
20872086
{

0 commit comments

Comments
 (0)