Merge branch 'tq/refs-internal-comment-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 16 Oct 2018 07:15:59 +0000 (16:15 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 16 Oct 2018 07:15:59 +0000 (16:15 +0900)
Fix for typo in a sample code in comment.

* tq/refs-internal-comment-fix:
refs: docstring typo

refs/refs-internal.h
index 89d7dd49cdce945d1bfe7277082d3d444b9d7e85..b425ae40b106eb639698d1bd4a52d0bd02345dee 100644 (file)
@@ -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);