Skip to content

Commit c92faa4

Browse files
newrengitster
authored andcommitted
hashmap: fix documentation misuses of -> versus .
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent a6d39f2 commit c92faa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hashmap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
*
6060
* if (!strcmp("print_all_by_key", action)) {
6161
* struct long2string k, *e;
62-
* hashmap_entry_init(&k->ent, memhash(&key, sizeof(long)));
62+
* hashmap_entry_init(&k.ent, memhash(&key, sizeof(long)));
6363
* k.key = key;
6464
*
6565
* flags &= ~COMPARE_VALUE;
@@ -87,12 +87,12 @@
8787
*
8888
* if (!strcmp("has_exact_match_no_heap_alloc", action)) {
8989
* struct long2string k;
90-
* hashmap_entry_init(&k->ent, memhash(&key, sizeof(long)));
90+
* hashmap_entry_init(&k.ent, memhash(&key, sizeof(long)));
9191
* k.key = key;
9292
*
9393
* flags |= COMPARE_VALUE;
9494
* printf("%sfound\n",
95-
* hashmap_get(&map, &k->ent, value) ? "" : "not ");
95+
* hashmap_get(&map, &k.ent, value) ? "" : "not ");
9696
* }
9797
*
9898
* if (!strcmp("end", action)) {

0 commit comments

Comments
 (0)