From 99eea1cfcdfc27dffeaa4c90ae700a7e3f3381a4 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Tue, 22 Jan 2019 13:57:38 +0100 Subject: [PATCH] p2p/protocols: fix a typo in comment --- p2p/protocols/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/protocols/protocol.go b/p2p/protocols/protocol.go index 4899b35cfb..bf879b9851 100644 --- a/p2p/protocols/protocol.go +++ b/p2p/protocols/protocol.go @@ -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 {