From 4b54601d5c62baff631d195ea23bcef2a68ce897 Mon Sep 17 00:00:00 2001 From: careworry <167077904+careworry@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:17:58 +0800 Subject: [PATCH] chore: fix some typos in comments (#2408) --- eth/protocols/trust/peer.go | 2 +- internal/flags/flags.go | 2 +- p2p/discover/v5_talk.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/protocols/trust/peer.go b/eth/protocols/trust/peer.go index 45d67c69e..b47341c3c 100644 --- a/eth/protocols/trust/peer.go +++ b/eth/protocols/trust/peer.go @@ -37,7 +37,7 @@ func (p *Peer) ID() string { return p.id } -// Version retrieves the peer's negoatiated `trust` protocol version. +// Version retrieves the peer's negotiated `trust` protocol version. func (p *Peer) Version() uint { return p.version } diff --git a/internal/flags/flags.go b/internal/flags/flags.go index bf62c53ad..36fdded9e 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -270,7 +270,7 @@ func (f *BigFlag) IsSet() bool { return f.HasBeenSet } func (f *BigFlag) String() string { return cli.FlagStringer(f) } func (f *BigFlag) Apply(set *flag.FlagSet) error { - // Set default value so that environment wont be able to overwrite it + // Set default value so that environment won't be able to overwrite it if f.Value != nil { f.defaultValue = new(big.Int).Set(f.Value) } diff --git a/p2p/discover/v5_talk.go b/p2p/discover/v5_talk.go index c1f678794..5d396f689 100644 --- a/p2p/discover/v5_talk.go +++ b/p2p/discover/v5_talk.go @@ -37,7 +37,7 @@ const talkHandlerLaunchTimeout = 400 * time.Millisecond // // Note that talk handlers are expected to come up with a response very quickly, within at // most 200ms or so. If the handler takes longer than that, the remote end may time out -// and wont receive the response. +// and won't receive the response. type TalkRequestHandler func(enode.ID, *net.UDPAddr, []byte) []byte type talkSystem struct {