diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-10-27 15:12:18 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-10-28 11:29:31 +0100 |
| commit | 668aa5dae1690d1a061da728f83b2450485d47f4 (patch) | |
| tree | 1f8172827cc8306888d6678ffd8ccd7b09e1b4fa /reference.go | |
| parent | 9c6db70fc2836b6f5eb56c505f9cc82461b999c3 (diff) | |
Make the constants have types
While Go will assign the correct type to a const block when it
auto-creates the values, assigning makes the const be typeless and will
only gain it in each particular use.
Make each constant in the blocks have an assigned type.
Diffstat (limited to 'reference.go')
| -rw-r--r-- | reference.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reference.go b/reference.go index e17e2b3..ce9d722 100644 --- a/reference.go +++ b/reference.go @@ -14,7 +14,7 @@ type ReferenceType int const ( ReferenceSymbolic ReferenceType = C.GIT_REF_SYMBOLIC - ReferenceOid = C.GIT_REF_OID + ReferenceOid ReferenceType = C.GIT_REF_OID ) type Reference struct { |
