Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
Signed-off-by: Ben McDonald <[email protected]>
  • Loading branch information
bmcdonald3 committed Jul 12, 2023
1 parent 0c9436b commit ab18d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/standard/Map.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -818,15 +818,15 @@ module Map {
set it to `v`. If the map already contains a value at position
`k`, update it to the value `v`.
*/
proc addOrRemove(in k: keyType, in v: valType) {
proc addOrReplace(in k: keyType, in v: valType) {
_enter(); defer _leave();
var (found, slot) = table.findAvailableSlot(k);
table.fillSlot(slot, k, v);
}

@deprecated(notes="'map.addOrSet' is deprecated. Please use 'map.addOrReplace' instead.")
proc addOrSet(in k: keyType, in v: valType) {
addOrRemove(k, v);
addOrReplace(k, v);
}

/*
Expand Down

0 comments on commit ab18d57

Please sign in to comment.