From 1721543e5ca5329ab42e2dfccf821f6863a5d0dc Mon Sep 17 00:00:00 2001 From: Zach Ramsay Date: Tue, 5 Sep 2017 16:52:25 -0400 Subject: [PATCH] linting: apply misspell --- p2p/connection.go | 2 +- p2p/switch.go | 2 +- rpc/lib/server/parse_test.go | 2 +- types/validator.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/p2p/connection.go b/p2p/connection.go index 28b136c77..5e4845536 100644 --- a/p2p/connection.go +++ b/p2p/connection.go @@ -569,7 +569,7 @@ type Channel struct { func newChannel(conn *MConnection, desc ChannelDescriptor) *Channel { desc = desc.FillDefaults() if desc.Priority <= 0 { - cmn.PanicSanity("Channel default priority must be a postive integer") + cmn.PanicSanity("Channel default priority must be a positive integer") } return &Channel{ conn: conn, diff --git a/p2p/switch.go b/p2p/switch.go index c19931550..be51d561d 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -511,7 +511,7 @@ func MakeConnectedSwitches(cfg *cfg.P2PConfig, n int, initSwitch func(int, *Swit } // Connect2Switches will connect switches i and j via net.Pipe(). -// Blocks until a conection is established. +// Blocks until a connection is established. // NOTE: caller ensures i and j are within bounds. func Connect2Switches(switches []*Switch, i, j int) { switchI := switches[i] diff --git a/rpc/lib/server/parse_test.go b/rpc/lib/server/parse_test.go index 3c6d6edde..a86226f2c 100644 --- a/rpc/lib/server/parse_test.go +++ b/rpc/lib/server/parse_test.go @@ -150,7 +150,7 @@ func TestParseRPC(t *testing.T) { {`{"name": "john", "height": 22}`, 22, "john", false}, // defaults {`{"name": "solo", "unused": "stuff"}`, 0, "solo", false}, - // should fail - wrong types/lenght + // should fail - wrong types/length {`["flew", 7]`, 0, "", true}, {`[7,"flew",100]`, 0, "", true}, {`{"name": -12, "height": "fred"}`, 0, "", true}, diff --git a/types/validator.go b/types/validator.go index 7b167b273..c5d064e01 100644 --- a/types/validator.go +++ b/types/validator.go @@ -71,7 +71,7 @@ func (v *Validator) String() string { } // Hash computes the unique ID of a validator with a given voting power. -// It exludes the Accum value, which changes with every round. +// It excludes the Accum value, which changes with every round. func (v *Validator) Hash() []byte { return wire.BinaryRipemd160(struct { Address data.Bytes