Skip to content

Commit 68267e0

Browse files
committed
Update example_hashmaps_rehash.f90
Remove 'other_type' reference.
1 parent 2cae6de commit 68267e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

example/hashmaps/example_hashmaps_rehash.f90

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ program example_rehash
22
use stdlib_kinds, only: int8
33
use stdlib_hashmaps, only: open_hashmap_type
44
use stdlib_hashmap_wrappers, only: fnv_1_hasher, fnv_1a_hasher, &
5-
key_type, other_type, set
5+
key_type, set
66
implicit none
77
type(open_hashmap_type) :: map
88
type(key_type) :: key
9-
type(other_type) :: other
10-
class(*), allocatable :: dummy
11-
allocate (dummy, source='a dummy value')
129
call map%init(fnv_1_hasher, slots_bits=10)
1310
call set(key, [5_int8, 7_int8, 4_int8, 13_int8])
14-
call set(other, dummy)
15-
call map%map_entry(key, other)
11+
call map%map_entry(key, 'A value')
1612
call map%rehash(fnv_1a_hasher)
1713
end program example_rehash

0 commit comments

Comments
 (0)