Skip to content

Commit d5ec9df

Browse files
committed
Rename HashMap:Entry:insert to :insert_entry
1 parent a8f6e61 commit d5ec9df

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/collections/hash

1 file changed

+1
-1
lines changed

library/std/src/collections/hash/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ impl<'a, K, V> Entry<'a, K, V> {
24602460
/// ```
24612461
#[inline]
24622462
#[unstable(feature = "entry_insert", issue = "65225")]
2463-
pub fn insert(self, value: V) -> OccupiedEntry<'a, K, V> {
2463+
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
24642464
match self {
24652465
Occupied(mut entry) => {
24662466
entry.insert(value);

0 commit comments

Comments
 (0)