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

[PATCH] refs: docstirng typo

From
Tao Qingyun <taoqy@ls-a.me>
Date
Sep 14, 2018, 14:45 UTC
Message-ID
<20180914144512.1267-1-taoqy@ls-a.me>
---
 refs/refs-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 04425d6d1e..1fe5a7a22f 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -282,7 +282,7 @@ int refs_rename_ref_available(struct ref_store *refs,
  *
  *             // Access information about the current reference:
  *             if (!(iter->flags & REF_ISSYMREF))
- *                     printf("%s is %s\n", iter->refname, oid_to_hex(&iter->oid));
+ *                     printf("%s is %s\n", iter->refname, oid_to_hex(iter->oid));
  *
  *             // If you need to peel the reference:
  *             ref_iterator_peel(iter, &oid);
-- 
2.18.0
Next: Eric Sunshine
Message 1 of 3 in “refs: docstirng typo”
  1. refs: docstirng typoTao Qingyun, Sep 14, 2018
  2. Eric SunshineSep 14, 2018
  3. refs: docstring typoTao Qingyun, Sep 15, 2018

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.