Skip to content

Commit f4c8c1c

Browse files
committed
Made spelling of procedure consistent
A procedure was being called both 'remove' and 'remove_entry'. I changed all spellings to 'remove'. [ticket: X]
1 parent ede7f79 commit f4c8c1c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/specs/stdlib_hashmaps.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ derived type `hashmap_type` is the parent type to its two
948948
extensions: `chaining_hashmap_type` and `open_hashmap_type`.
949949
The extension types provide
950950
procedures to manipulate the structure of a hash map object:
951-
`init`, `map_entry`, `rehash`, `remove_entry`, and
951+
`init`, `map_entry`, `rehash`, `remove`, and
952952
`set_other_data`. They also provide procedures to inquire about
953953
entries in the hash map: `get_other_data`, and
954954
`valid_key`. Finally they provide procedures to inquire about the
@@ -1279,7 +1279,7 @@ Procedures to modify the content of a map:
12791279
* `map % map_entry( key, other, conflict )` - Inserts an entry into the
12801280
hash map.
12811281

1282-
* `map % remove_entry( key, existed )` - Remove the entry, if any,
1282+
* `map % remove( key, existed )` - Remove the entry, if any,
12831283
associated with the `key`.
12841284

12851285
* `map % set_other_data( key, other, exists )` - Change the other data
@@ -1814,7 +1814,7 @@ It is the hash method to be used by `map`.
18141814
end program demo_rehash
18151815
```
18161816

1817-
#### `remove_entry` - removes an entry from the hash map
1817+
#### `remove` - removes an entry from the hash map
18181818

18191819
##### Status
18201820

@@ -1826,7 +1826,7 @@ Removes an entry from the hash map, `map`.
18261826

18271827
##### Syntax
18281828

1829-
`call [[stdlib_hashmaps:map%remove_entry]]( key[, existed ])`
1829+
`call [[stdlib_hashmaps:map%remove]]( key[, existed ])`
18301830

18311831
##### Class
18321832

@@ -1852,7 +1852,7 @@ removed and the map is unchanged.
18521852
##### Example
18531853

18541854
```fortran
1855-
program demo_remove_entry
1855+
program demo_remove
18561856
use stdlib_hashmaps, only: open_hashmap_type, int_index
18571857
use stdlib_hashmap_wrappers, only: fnv_1_hasher, &
18581858
fnv_1a_hasher, key_type, other_type
@@ -1866,9 +1866,9 @@ removed and the map is unchanged.
18661866
call set( key, [ 5_int8, 7_int8, 4_int8, 13_int8 ] )
18671867
call set( other, dummy )
18681868
call map % map_entry( key, other )
1869-
call map % remove_entry( key, existed )
1869+
call map % remove( key, existed )
18701870
print *, "Removed key existed = ", existed
1871-
end program demo_remove_entry
1871+
end program demo_remove
18721872
```
18731873

18741874
#### `set_other_data` - replaces the other dataa for an entry

0 commit comments

Comments
 (0)