refs: docstring typo
authorTao Qingyun <taoqy@ls-a.me>
Sat, 15 Sep 2018 02:15:46 +0000 (10:15 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 17:17:22 +0000 (10:17 -0700)
Signed-off-by: Tao Qingyun <taoqy@ls-a.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/refs-internal.h
index dd834314bd8d5af0315dab19af50f3300a73ad90..58b827e523966507e988b80818967906a5d9217e 100644 (file)
@@ -281,7 +281,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);