chore: fix some typos in comments (#2408)

This commit is contained in:
careworry 2024-04-19 13:17:58 +08:00 committed by GitHub
parent 3b7f0e4279
commit 4b54601d5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

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

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

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