p2p/protocols: fix a typo in comment

This commit is contained in:
Janos Guljas 2019-01-22 13:57:38 +01:00
parent c4fb3e97d5
commit 99eea1cfcd

View file

@ -424,7 +424,7 @@ func (p *Peer) Handshake(ctx context.Context, hs interface{}, verify func(interf
return rhs, nil
}
// HasCap returns true fi Peer has a capability
// HasCap returns true if Peer has a capability
// with provided name.
func (p *Peer) HasCap(capName string) (yes bool) {
if p == nil || p.Peer == nil {