# [PATCH] refs: docstirng typo

3 messages from 2018-09-14 to 2018-09-15. Participants: Tao Qingyun, Eric Sunshine.
Thread: https://gitlist.dev/t/49344

## Tao Qingyun, 2018-09-14 14:45

Subject: [PATCH] refs: docstirng typo
Message-ID: <20180914144512.1267-1-taoqy@ls-a.me>
URL: https://gitlist.dev/e/20180914144512.1267-1-taoqy%40ls-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


```

## Eric Sunshine, 2018-09-14 18:37

Subject: Re: [PATCH] refs: docstirng typo
Message-ID: <CAPig+cRNwdU6QJpbZiiwWcL5e8zqO3V72ex+_p_SxjF77YX3iw@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcRNwdU6QJpbZiiwWcL5e8zqO3V72ex%2B_p_SxjF77YX3iw%40mail.gmail.com
In-Reply-To: <20180914144512.1267-1-taoqy@ls-a.me>

```
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, 2018-09-15 02:15

Subject: [PATCH v2] refs: docstring typo
Message-ID: <20180915021546.2098-1-taoqy@ls-a.me>
URL: https://gitlist.dev/e/20180915021546.2098-1-taoqy%40ls-a.me
In-Reply-To: <CAPig+cRNwdU6QJpbZiiwWcL5e8zqO3V72ex+_p_SxjF77YX3iw@mail.gmail.com>

```
Signed-off-by: Tao Qingyun <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.19.0




```
