diff options
| author | hedgehog1024 <hedgehog1024@scryptmail.com> | 2018-02-12 22:25:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-12 22:25:03 +0300 |
| commit | 862132be72d4de87330e31d53489b8c718a6663e (patch) | |
| tree | 56b833abb5f6d34df02b47c617035eab9b51bfde | |
| parent | 770fdeddb4ca7cedca41a391d4b283069e1d9a8c (diff) | |
| download | rust-862132be72d4de87330e31d53489b8c718a6663e.tar.gz rust-862132be72d4de87330e31d53489b8c718a6663e.zip | |
Stabilize 'entry_and_modify' feature for HashMap
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 82a687ae5e4..80e52123a01 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -2066,7 +2066,6 @@ impl<'a, K, V> Entry<'a, K, V> { /// # Examples /// /// ``` - /// #![feature(entry_and_modify)] /// use std::collections::HashMap; /// /// let mut map: HashMap<&str, u32> = HashMap::new(); @@ -2081,7 +2080,7 @@ impl<'a, K, V> Entry<'a, K, V> { /// .or_insert(42); /// assert_eq!(map["poneyland"], 43); /// ``` - #[unstable(feature = "entry_and_modify", issue = "44733")] + #[stable(feature = "entry_and_modify", since = "1.25.0")] pub fn and_modify<F>(self, mut f: F) -> Self where F: FnMut(&mut V) { |
