Skip to content

Commit

Permalink
chore: fix some typos in comments (#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
careworry authored Apr 19, 2024
1 parent 3b7f0e4 commit 4b54601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eth/protocols/trust/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion p2p/discover/v5_talk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4b54601

Please sign in to comment.