diff options
author | Elijah Newren <newren@gmail.com> | 2019-11-05 23:31:31 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-07 14:40:56 +0900 |
commit | c92faa4d22a1377ab9776063cfd33b3cfd9f5884 (patch) | |
tree | c98f381814cae34364118ce7038524708ecf9e52 /hashmap.h | |
parent | a6d39f2efbdf5f8daceaf7bfa9a1b32c2a9cdafa (diff) | |
download | git-c92faa4d22a1377ab9776063cfd33b3cfd9f5884.tar.gz |
hashmap: fix documentation misuses of -> versus .
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hashmap.h')
-rw-r--r-- | hashmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -59,7 +59,7 @@ * * if (!strcmp("print_all_by_key", action)) { * struct long2string k, *e; - * hashmap_entry_init(&k->ent, memhash(&key, sizeof(long))); + * hashmap_entry_init(&k.ent, memhash(&key, sizeof(long))); * k.key = key; * * flags &= ~COMPARE_VALUE; @@ -87,12 +87,12 @@ * * if (!strcmp("has_exact_match_no_heap_alloc", action)) { * struct long2string k; - * hashmap_entry_init(&k->ent, memhash(&key, sizeof(long))); + * hashmap_entry_init(&k.ent, memhash(&key, sizeof(long))); * k.key = key; * * flags |= COMPARE_VALUE; * printf("%sfound\n", - * hashmap_get(&map, &k->ent, value) ? "" : "not "); + * hashmap_get(&map, &k.ent, value) ? "" : "not "); * } * * if (!strcmp("end", action)) { |