diff --git a/tools/conformance/chaos/cbor_gen.go b/tools/conformance/chaos/cbor_gen.go index e7178cad9e..521acfc98b 100644 --- a/tools/conformance/chaos/cbor_gen.go +++ b/tools/conformance/chaos/cbor_gen.go @@ -851,7 +851,7 @@ func (t *AbortWithArgs) UnmarshalCBOR(r io.Reader) error { case cbg.MajNegativeInt: extraI = int64(extra) if extraI < 0 { - return fmt.Errorf("int64 negative oveflow") + return fmt.Errorf("int64 negative overflow") } extraI = -1 - extraI default: diff --git a/venus-component/libp2p/exchange/client/client.go b/venus-component/libp2p/exchange/client/client.go index abfae70066..35ac380860 100644 --- a/venus-component/libp2p/exchange/client/client.go +++ b/venus-component/libp2p/exchange/client/client.go @@ -40,7 +40,7 @@ type client struct { var _ exchange.Client = (*client)(nil) // NewClient creates a new libp2p-based exchange.Client that uses the libp2p -// ChainExhange protocol as the fetching mechanism. +// ChainExchange protocol as the fetching mechanism. func NewClient(lc fx.Lifecycle, host host.Host, pmgr libp2p.PeerManager) exchange.Client { return &client{ host: host, diff --git a/venus-shared/actors/aerrors/wrap.go b/venus-shared/actors/aerrors/wrap.go index 70d6ceb224..14afa88172 100644 --- a/venus-shared/actors/aerrors/wrap.go +++ b/venus-shared/actors/aerrors/wrap.go @@ -103,7 +103,7 @@ func Wrap(err ActorError, message string) ActorError { } } -// Wrapf extens chain of errors with a message +// Wrapf extends chain of errors with a message func Wrapf(err ActorError, format string, args ...interface{}) ActorError { if err == nil { return nil