Skip to content

Commit 2e8e686

Browse files
committed
Merge branch 'hashmap-init-update' of https://github.com/chuckyvt/stdlib into hashmap-init-update
2 parents 43779e2 + 5cc1c9f commit 2e8e686

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

example/hashmaps/example_hashmaps_get_all_keys.f90

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
program example_hashmaps_get_all_keys
22
use stdlib_kinds, only: int32
33
use stdlib_hashmaps, only: chaining_hashmap_type
4-
use stdlib_hashmap_wrappers, only: get, &
5-
key_type, set
4+
use stdlib_hashmap_wrappers, only: get, key_type, set
65
implicit none
76
type(chaining_hashmap_type) :: map
87
type(key_type) :: key

example/hashmaps/example_hashmaps_init.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ program example_init
1818

1919
! User can optional specify hasher type and slots_bits instead of using default values.
2020
! Number of slots in the hashmap will initially equal 2**slots_bits.
21-
! The hashmap will autmoatically re-size as needed, however for better performance, a rule of thumb is to size so that number of slots is ~2X expected number of entries.
21+
! The hashmap will automatically re-size as needed; however for better performance, a rule of thumb is to size so that number of slots is ~2X expected number of entries.
2222
! In this example with slots_bits=10, there will initially be 1024 slots in the map.
2323
call map%init(hasher=fnv_1_hasher, slots_bits=10)
2424
call map%map_entry('key', 'value')

test/hashmaps/test_chaining_maps.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ program test_chaining_maps
4848

4949
test_8_bits(:) = transfer( rand_object, 0_int8, test_size )
5050

51-
! Test implicit initalization by leaving skipping init call for first test.
51+
! Test implicit initalization by skipping init call for first test.
5252
call input_random_data( map, test_16, 'FNV-1', "16 byte words" )
5353
call test_inquire_data( map, test_16, 'FNV-1', "16 byte words" )
5454
call test_get_all_keys( map, test_16, 'FNV-1', '16 byte words' )

test/hashmaps/test_open_maps.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ program test_open_maps
4949

5050
test_8_bits(:) = transfer( rand_object, 0_int8, test_size )
5151

52-
! Test implicit initalization by leaving skipping init call for first test.
52+
! Test implicit initalization by skipping init call for first test.
5353
call input_random_data( map, test_16, 'FNV-1', "16 byte words" )
5454
call test_inquire_data( map, test_16, 'FNV-1', "16 byte words" )
5555
call test_get_data( map, test_16, 'FNV-1', '16 byte words' )

0 commit comments

Comments
 (0)