about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorhedgehog1024 <hedgehog1024@scryptmail.com>2018-02-12 22:19:37 +0300
committerGitHub <noreply@github.com>2018-02-12 22:19:37 +0300
commit770fdeddb4ca7cedca41a391d4b283069e1d9a8c (patch)
tree82c317866398679e37d393f8ac50a36f49c0bdd4 /src/liballoc
parent16362c737fe740f630ada06349fa9004e2a51bb7 (diff)
downloadrust-770fdeddb4ca7cedca41a391d4b283069e1d9a8c.tar.gz
rust-770fdeddb4ca7cedca41a391d4b283069e1d9a8c.zip
Stabilize 'entry_and_modify' feature for BTreeMap
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/btree/map.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/btree/map.rs b/src/liballoc/btree/map.rs
index b320bed5432..b98489c516a 100644
--- a/src/liballoc/btree/map.rs
+++ b/src/liballoc/btree/map.rs
@@ -2114,7 +2114,6 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(entry_and_modify)]
     /// use std::collections::BTreeMap;
     ///
     /// let mut map: BTreeMap<&str, usize> = BTreeMap::new();
@@ -2129,7 +2128,7 @@ impl<'a, K: Ord, 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)
     {