Update rustc version that or_insert_with_key landed
This commit is contained in:
parent
c2de8fe294
commit
866ef87d3f
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
|
|||
/// assert_eq!(map["poneyland"], 9);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "or_insert_with_key", since = "1.49.0")]
|
||||
#[stable(feature = "or_insert_with_key", since = "1.50.0")]
|
||||
pub fn or_insert_with_key<F: FnOnce(&K) -> V>(self, default: F) -> &'a mut V {
|
||||
match self {
|
||||
Occupied(entry) => entry.into_mut(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue