Skip to content

Commit

Permalink
Rename HashMap:Entry:insert to :insert_entry
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Oct 27, 2021
1 parent a8f6e61 commit d5ec9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/collections/hash/map.rs
Expand Up @@ -2460,7 +2460,7 @@ impl<'a, K, V> Entry<'a, K, V> {
/// ```
#[inline]
#[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 {
Occupied(mut entry) => {
entry.insert(value);
Expand Down

0 comments on commit d5ec9df

Please sign in to comment.