Skip to content

Commit 77c02a6

Browse files
authored
fix(docs): use correct Ddoc entries (#190)
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
1 parent 586a4d0 commit 77c02a6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/containers/hashmap.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
143143
*
144144
* Params:
145145
* key = the key to look up
146-
* value = the default value
146+
* defaultValue = the default value
147147
* Returns: the value indexed by `key`, if present, or `defaultValue` otherwise.
148148
*/
149149
auto get(this This)(K key, lazy V defaultValue)
@@ -163,7 +163,7 @@ struct HashMap(K, V, Allocator = Mallocator, alias hashFunction = generateHash!K
163163
*
164164
* Params:
165165
* key = the key to look up
166-
* value = the default value
166+
* defaultValue = the default value
167167
* Returns: a pointer to the value stored in the HashMap with the given key.
168168
* The pointer is guaranteed to be valid only until the next HashMap
169169
* modification.

src/containers/openhashset.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct OpenHashSet(T, Allocator = Mallocator,
5353
*
5454
* Params:
5555
* initialCapacity = the initial capacity for the hash set
56+
* allocator = allocator to use for allocations
5657
*/
5758
this(size_t initialCapacity, Allocator allocator)
5859
in

src/containers/treemap.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct TreeMap(K, V, Allocator = Mallocator, alias less = "a < b",
102102
*
103103
* Params:
104104
* key = the key to look up
105-
* value = the default value
105+
* defaultValue = the default value
106106
*
107107
* Returns: A pointer to the existing value, or a pointer to the inserted
108108
* value.

0 commit comments

Comments
 (0)