hashmap: fix documentation misuses of -> versus .
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Nov 5, 2019 at 23:31 UTC
c92faa4d22a1377ab9776063cfd33b3cfd9f5884
1 file changed
+3
-3
hashmap.h
+3
-3
@@ -59,7 +59,7 @@
59
*
60
* if (!strcmp("print_all_by_key", action)) {
61
* struct long2string k, *e;
62
- * hashmap_entry_init(&k->ent, memhash(&key, sizeof(long)));
62
+ * hashmap_entry_init(&k.ent, memhash(&key, sizeof(long)));
63
* k.key = key;
64
*
65
* flags &= ~COMPARE_VALUE;
@@ -87,12 +87,12 @@
87
*
88
* if (!strcmp("has_exact_match_no_heap_alloc", action)) {
89
* struct long2string k;
90
- * hashmap_entry_init(&k->ent, memhash(&key, sizeof(long)));
90
+ * hashmap_entry_init(&k.ent, memhash(&key, sizeof(long)));
91
* k.key = key;
92
*
93
* flags |= COMPARE_VALUE;
94
* printf("%sfound\n",
95
- * hashmap_get(&map, &k->ent, value) ? "" : "not ");
95
+ * hashmap_get(&map, &k.ent, value) ? "" : "not ");
96
* }
97
*
98
* if (!strcmp("end", action)) {