From ad7e3894c78b76cd60adf57aca603ff99376b7b5 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 6 Aug 2013 12:37:20 -0500 Subject: [PATCH] Allow var def to infer type from right-hand side. Found by golint. --- block_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block_test.go b/block_test.go index 8f39d4b..bd3d246 100644 --- a/block_test.go +++ b/block_test.go @@ -290,7 +290,7 @@ func TestBlockErrors(t *testing.T) { // Block100000 defines block 100,000 of the block chain. It is used to // test Block operations. -var Block100000 btcwire.MsgBlock = btcwire.MsgBlock{ +var Block100000 = btcwire.MsgBlock{ Header: btcwire.BlockHeader{ Version: 1, PrevBlock: btcwire.ShaHash([32]byte{ // Make go vet happy.