git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] hashmap: fix documentation misuses of -> versus .

From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 5, 2019, 23:31 UTC
Message-ID
<ebf6c7a8120438466e0a679d3066ac1d1525bf76.1572996692.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.454.git.1572996692.gitgitgadget@gmail.com>
From: Elijah Newren <newren@gmail.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
---
 hashmap.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hashmap.h b/hashmap.h
index bd2701549f..6036069c23 100644
--- a/hashmap.h
+++ b/hashmap.h
@@ -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)) {
-- 
gitgitgadget
Previous: Elijah Newren via GitGitGadgetNext: Jeff King
Message 5 of 6 in “Other doc fixes”
  1. 0/3 Other doc fixesElijah Newren via GitGitGadget, Nov 5, 2019
  2. 3/3 name-hash.c: remove duplicate word in commentElijah Newren via GitGitGadget, Nov 5, 2019
  3. Junio C HamanoNov 7, 2019
  4. 1/3 git-filter-branch.txt: correct argument name typoElijah Newren via GitGitGadget, Nov 5, 2019
  5. 2/3 hashmap: fix documentation misuses of -> versus .Elijah Newren via GitGitGadget, Nov 5, 2019
  6. Jeff KingNov 6, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.