summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorTao Qingyun <taoqy@ls-a.me>2018-09-15 02:15:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-17 17:17:22 (GMT)
commit7b6057c8528d491775aef6578f43873c12b6a17d (patch)
tree9879e9b5086a6165663f50d98ccf0b4ea961b361 /refs
parentfc54c1af3ec09bab8b8ea09768c2da4069b7f53e (diff)
downloadgit-7b6057c8528d491775aef6578f43873c12b6a17d.zip
git-7b6057c8528d491775aef6578f43873c12b6a17d.tar.gz
git-7b6057c8528d491775aef6578f43873c12b6a17d.tar.bz2
refs: docstring typo
Signed-off-by: Tao Qingyun <taoqy@ls-a.me> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r--refs/refs-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index dd83431..58b827e 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -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);