Rename HashMap:Entry:insert to :insert_entry
This commit is contained in:
@@ -2460,7 +2460,7 @@ impl<'a, K, V> Entry<'a, K, V> {
|
|||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "entry_insert", issue = "65225")]
|
#[unstable(feature = "entry_insert", issue = "65225")]
|
||||||
pub fn insert(self, value: V) -> OccupiedEntry<'a, K, V> {
|
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
|
||||||
match self {
|
match self {
|
||||||
Occupied(mut entry) => {
|
Occupied(mut entry) => {
|
||||||
entry.insert(value);
|
entry.insert(value);
|
||||||
|
|||||||
Reference in New Issue
Block a user