From 668aa5dae1690d1a061da728f83b2450485d47f4 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Mon, 27 Oct 2014 15:12:18 +0100 Subject: 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. --- reference.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reference.go') 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 { -- cgit v1.2.3