Allow var def to infer type from right-hand side.

Found by golint.
This commit is contained in:
Dave Collins 2013-08-06 12:37:20 -05:00
parent 43095c66bc
commit ad7e3894c7

View file

@ -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.