Skip to content

Commit c9f2d6c

Browse files
committed
Fixed typos
Fixed typos mostly in the examples, as found creating documentation fon an implementation of the hash maps that doesn't rely on the inmap index. [ticket: X]
1 parent 9f3471d commit c9f2d6c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

doc/specs/stdlib_hash_maps.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ Procedures to report on the structure of the map:
13401340
* `total_depth( map )` - Returns the total number of one's based
13411341
offsets of slot entries from their slot index
13421342

1343-
### Specifications of the `stdlib_hashmap_chaining` procedures
1343+
### Specifications of the `stdlib_hashmaps` procedures
13441344

13451345
#### `calls` - Returns the number of calls on a hash map
13461346

@@ -1961,13 +1961,11 @@ generation of `inmap`, `other` is undefined.
19611961
integer(int_index) :: inmap
19621962
class(*), allocatable :: dummy
19631963
allocate( dummy, source=4.0 )
1964-
call init( map, &
1965-
fnv_1_hasher, &
1966-
slots_bits=10 )
1964+
call map % init( fnv_1_hasher, slots_bits=10 )
19671965
call set( key, [ 5_int8, 7_int8, 4_int8, 13_int8 ] )
19681966
call set( other, dummy )
1969-
call map_entry( map, inmap, key, other )
1970-
call remove_entry( map, inmap )
1967+
call map % map_entry( inmap, key, other )
1968+
call map % remove_entry( inmap )
19711969
end program demo_remove_entry
19721970
```
19731971

@@ -2207,7 +2205,7 @@ the inverse table.
22072205

22082206
##### Syntax
22092207

2210-
`result = [[stdlib_hashmaps:map % valid_index]]( map )`
2208+
`result = [[stdlib_hashmaps:map % valid_index]]( inmap )`
22112209

22122210
##### Class
22132211

@@ -2245,7 +2243,7 @@ table of `map` and `.false.` otherwise.
22452243
logocal :: valid
22462244
call map % init( fnv_1_hasher )
22472245
inmap = 10
2248-
valid = map % valid_index ( inmap)
2246+
valid = map % valid_index ( inmap )
22492247
print *, "Initial index of 10 valid for empty map = ", valid
22502248
end program demo_valid_index
22512249
```

0 commit comments

Comments
 (0)