Skip to content

Commit 60addf4

Browse files
committed
Fixed typos
Fixed numerous typos in stdlib_hash_maps.md identified by Jeremie. [ticket: X]
1 parent 7dd1a51 commit 60addf4

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

doc/specs/stdlib_hash_maps.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,6 @@ performance on short keys.
770770
As a result it should give fair performance for typical hash map
771771
applications.
772772
This code passes the SMHasher tests.
773-
As a result it should give good performance for typical hash map
774-
applications.
775773

776774

777775
##### Example
@@ -834,8 +832,6 @@ performance on short keys.
834832
As a result it should give fair performance for typical hash map
835833
applications.
836834
This code passes the SMHasher tests.
837-
As a result it should give good performance for typical hash map
838-
applications.
839835

840836
##### Example
841837

@@ -897,8 +893,6 @@ on short keys.
897893
As a result it should give reasonable performance for typical hash
898894
table applications.
899895
This code passes the SMHasher tests.
900-
As a result it should give good performance for typical hash map
901-
applications.
902896

903897

904898
##### Example
@@ -988,7 +982,7 @@ separate chaining hashing. The derived type is
988982
procedures to manipulate the structure of the hash map:
989983
`init`, `map_entry`, `rehash`, `remove_entry`, and
990984
`set_other_data`. It provides procedures to inquire about entries in
991-
the hash map: `get_other_data`, `in_map`, `unmap`.and `valid_index`.
985+
the hash map: `get_other_data`, `in_map`, `unmap` and `valid_index`.
992986
Finally it provides procedures to inquire about the overall
993987
structure and performance of the table:`calls`, `entries`,
994988
`get_other_data`, `loading`, `slots`, and `total_depth`. The module
@@ -1001,7 +995,7 @@ also defines a number of public constants: `inmap_probe_factor`,
1001995

1002996
The module defines several categories of public constants. Some are
1003997
used to parameterize the empirical slot expansion code. Others
1004-
parameterize the slots table size, Some are used to define
998+
parameterize the slots table size. Some are used to define
1005999
integer kind values for different applications. Finally, some are used
10061000
to report errors or success.
10071001

@@ -1039,7 +1033,7 @@ entities of kind `int_probes`. Currently `int_probes` has the value of
10391033

10401034
Finally the error codes `success`, `alloc_fault`, and
10411035
`array_size_error` are used to report the error status of certain
1042-
procedure calla. The `succes` code indicates that no problems were
1036+
procedure calls. The `succes` code indicates that no problems were
10431037
found. The `alloc_fault` code indicates that a memory allocation
10441038
failed. Finally the `array_size_error` indicates that on table
10451039
creation `slots_bits` is less than `default_bits` or
@@ -1075,7 +1069,7 @@ Currently the `int_hash` and `int_index` have the value of `int32`.
10751069

10761070
#### The `chaining_map_entry_ptr` derived type
10771071

1078-
The type `chaining_map_entry_ptr` are used to define the elements of
1072+
The type `chaining_map_entry_ptr` is used to define the elements of
10791073
the hash map that are either empty or link to the linked lists
10801074
containing the elements of the table. The type's definition is below:
10811075

@@ -1094,7 +1088,7 @@ costs. The type's definition is below:
10941088

10951089
```fortran
10961090
type :: chaining_map_entry_pool
1097-
! Type inplementing a pool of allocated
1091+
! Type implementing a pool of allocated
10981092
! `chaining_map_entry_type` objects
10991093
private
11001094
! Index of next bucket
@@ -1543,7 +1537,7 @@ The result will be a default real.
15431537
##### Result value
15441538

15451539
The result will be the ratio of the number of entries relative to the
1546-
number of slots in the hash map.?
1540+
number of slots in the hash map.
15471541

15481542
##### Example
15491543

@@ -2068,7 +2062,7 @@ linear open addressing hashing. The derived type is
20682062
procedures to manipulate the structure of the hash map:
20692063
`init`, `map_entry`, `rehash`, and `set_other_data`. It
20702064
provides procedures to inquire about entries in the hash map:
2071-
`get_other_data`, `in_map`, `unmap`.and `valid_index`. Finally it
2065+
`get_other_data`, `in_map`, `unmap` and `valid_index`. Finally it
20722066
provides procedures to inquire about the overall structure and
20732067
performance of the table:`calls`, `entries`, `get_other_data`,
20742068
`loading`, `relative_loading`, `slots`, and `total_depth`. The module
@@ -2081,7 +2075,7 @@ also defines a number of public constants: `inmap_probe_factor`,
20812075

20822076
The module defines several categories of public constants. Some are
20832077
used to parameterize the empirical slot expansion code. Others
2084-
parameterize the slots table size, Some are used to define
2078+
parameterize the slots table size. Some are used to define
20852079
integer kind values for different applications. Finally, some are used
20862080
to report errors or success.
20872081

@@ -2128,7 +2122,7 @@ entities of kind `int_probes`. Currently `int_probes` has the value of
21282122

21292123
Finally the error codes `success`, `alloc_fault`, and
21302124
`array_size_error` are used to report the error status of certain
2131-
procedure calla. The `succes` code indicates that no problems were
2125+
procedure calls. The `succes` code indicates that no problems were
21322126
found. The `alloc_fault` code indicates that a memory allocation
21332127
failed. The `array_size_error` indicates that on table
21342128
creation `slots_bits` is less than `default_bits` or
@@ -2161,7 +2155,7 @@ Currently `int_hash` and `int_index` have the value of `int32`.
21612155

21622156
#### The `open_map_entry_ptr` derived type
21632157

2164-
The type `open_map_entry_ptr` are used to define the elements of
2158+
The type `open_map_entry_ptr` is used to define the elements of
21652159
the hash map that are either empty or link to the linked lists
21662160
containing the elements of the table. The type's definition is below:
21672161

@@ -2319,7 +2313,7 @@ The result will be the number of procedure calls on the hash map.
23192313
type(open_hashmap_type) :: map
23202314
type(int_calls) :: initial_calls
23212315
call init( map, fnv_1_hasher )
2322-
initisl_calls = calls (map)
2316+
initial_calls = calls (map)
23232317
print *, "INITIAL_CALLS = ", initial_calls
23242318
end program demo_calls
23252319
```
@@ -2610,7 +2604,7 @@ The result will be a default real.
26102604
##### Result value
26112605

26122606
The result will be the ratio of the number of entries relative to the
2613-
number of slots in the hash map.?
2607+
number of slots in the hash map.
26142608

26152609
##### Example
26162610

0 commit comments

Comments
 (0)