diff options
| author | kennytm <kennytm@gmail.com> | 2018-02-25 15:54:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-25 15:54:42 +0800 |
| commit | b443e57ce6015278031144dcc6aeea2d6dc1d680 (patch) | |
| tree | 7b6b83884ec491882ee0c4225970b8b1ed8302e2 /src/liballoc | |
| parent | 562626ac3f51d87b87039ba7f73bc251bea6efdf (diff) | |
| parent | 0aa753ba30254631ce05f37cd2ff0dd428d931c5 (diff) | |
| download | rust-b443e57ce6015278031144dcc6aeea2d6dc1d680.tar.gz rust-b443e57ce6015278031144dcc6aeea2d6dc1d680.zip | |
Rollup merge of #48166 - hedgehog1024:hedgehog1024-stabilize-entry_and_modify, r=alexcrichton
Stabilize 'entry_and_modify' feature Stabilize `entry_and_modify` feature introduced by #44734. Closes #44733
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/btree/map.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/btree/map.rs b/src/liballoc/btree/map.rs index b320bed5432..618ef81fdd9 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.26.0")] pub fn and_modify<F>(self, mut f: F) -> Self where F: FnMut(&mut V) { |
