linting: apply misspell

This commit is contained in:
Zach Ramsay 2017-09-05 16:52:25 -04:00 committed by Ethan Buchman
parent 46ccbcbff6
commit 1721543e5c
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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},

View File

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