threads / patch / 49344

patchrefs: docstirng typo

Subject: [PATCH] refs: docstirng typo

## tl;dr

3 messages between Sep 14, 2018 and Sep 15, 2018. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Tao Qingyun· Sep 14, 2018, 14:45 UTC · lore
---
 refs/refs-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to refs/refs-internal.h +1 −1
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
Eric Sunshine· Sep 14, 2018, 18:37 UTC · re: Tao Qingyun · lore

Re: [PATCH] refs: docstirng typo

On Fri, Sep 14, 2018 at 10:45 AM Tao Qingyun <taoqy@ls-a.me> wrote:
> refs: docstirng typo
Typo: s/docstirng/docstring/
> ---
Please sign-off your patch. See Documentation/SubmittingPatches.
Thanks.
Tao Qingyun· Sep 15, 2018, 02:15 UTC · re: Eric Sunshine · lore

[PATCH v2] refs: docstring typo

Signed-off-by: Tao Qingyun <taoqy@ls-a.me>
---
 refs/refs-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to refs/refs-internal.h +1 −1
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.19.0

← back to recent threads