From 3ffea738e6dffb0ed97ef35362748f1a8c8656a2 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sun, 17 Jan 2016 10:33:40 +0000 Subject: [PATCH] Make hash constants start from 1 not 2 --- fs/hash.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/hash.go b/fs/hash.go index 8efbdacf2..faf50176d 100644 --- a/fs/hash.go +++ b/fs/hash.go @@ -18,14 +18,14 @@ type HashType int var ErrHashUnsupported = fmt.Errorf("hash type not supported") const ( - // HashNone indicates no hashes are supported - HashNone HashType = 0 - // HashMD5 indicates MD5 support HashMD5 HashType = 1 << iota // HashSHA1 indicates SHA-1 support HashSHA1 + + // HashNone indicates no hashes are supported + HashNone HashType = 0 ) // SupportedHashes returns a set of all the supported hashes by