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. --- revparse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'revparse.go') diff --git a/revparse.go b/revparse.go index 9e0070e..308da4c 100644 --- a/revparse.go +++ b/revparse.go @@ -16,8 +16,8 @@ type RevparseFlag int const ( RevparseSingle RevparseFlag = C.GIT_REVPARSE_SINGLE - RevparseRange = C.GIT_REVPARSE_RANGE - RevparseMergeBase = C.GIT_REVPARSE_MERGE_BASE + RevparseRange RevparseFlag = C.GIT_REVPARSE_RANGE + RevparseMergeBase RevparseFlag = C.GIT_REVPARSE_MERGE_BASE ) type Revspec struct { -- cgit v1.2.3