chore: docs: fix some misspellings (#12333)

Signed-off-by: riskrose <riskrock@qq.com>
This commit is contained in:
riskrose
2024-08-02 12:18:16 +09:00
committed by GitHub
parent 1177717127
commit 10f6976a55
7 changed files with 8 additions and 8 deletions

View File

@ -575,7 +575,7 @@ func (a *fundedAddress) processWithdrawals(withdrawals []*fundRequest) (msgCid c
return withdrawFundsCid, nil
}
// asynchonously wait for results of message
// asynchronously wait for results of message
func (a *fundedAddress) startWaitForResults(msgCid cid.Cid) {
go func() {
err := a.env.WaitMsg(a.ctx, msgCid)

View File

@ -325,7 +325,7 @@ var EvmInvokeCmd = &cli.Command{
Usage: "optionally specify the account to use for sending the exec message",
}, &cli.IntFlag{
Name: "value",
Usage: "optionally specify the value to be sent with the invokation message",
Usage: "optionally specify the value to be sent with the invocation message",
},
},
Action: func(cctx *cli.Context) error {

View File

@ -1049,7 +1049,7 @@ func compareProposalToAllocation(prop market8.DealProposal, alloc verifreg9.Allo
proposalClientID, err := address.IDFromAddress(prop.Client)
if err != nil {
return xerrors.Errorf("couldnt get ID from address")
return xerrors.Errorf("couldn't get ID from address")
}
if proposalClientID != uint64(alloc.Client) {
return xerrors.Errorf("client id mismatch between proposal and allocation: %v, %v", proposalClientID, alloc.Client)
@ -1057,7 +1057,7 @@ func compareProposalToAllocation(prop market8.DealProposal, alloc verifreg9.Allo
proposalProviderID, err := address.IDFromAddress(prop.Provider)
if err != nil {
return xerrors.Errorf("couldnt get ID from address")
return xerrors.Errorf("couldn't get ID from address")
}
if proposalProviderID != uint64(alloc.Provider) {
return xerrors.Errorf("provider id mismatch between proposal and allocation: %v, %v", proposalProviderID, alloc.Provider)

View File

@ -2186,7 +2186,7 @@ USAGE:
OPTIONS:
--from value optionally specify the account to use for sending the exec message
--value value optionally specify the value to be sent with the invokation message (default: 0)
--value value optionally specify the value to be sent with the invocation message (default: 0)
--help, -h show help
```

View File

@ -425,7 +425,7 @@ func TestCreationTimeCleared(t *testing.T) {
m.planSingle(SectorPieceAdded{})
require.Equal(m.t, m.state.State, SnapDealsWaitDeals)
// abort shoult clean up CreationTime
// abort should clean up CreationTime
m.planSingle(SectorAbortUpgrade{})
require.Equal(m.t, m.state.State, AbortUpgrade)

View File

@ -362,7 +362,7 @@ func (m *Sealing) sectorAddPieceToAny(ctx context.Context, size abi.UnpaddedPiec
ts, err := m.Api.ChainHead(ctx)
if err != nil {
return api.SectorOffset{}, xerrors.Errorf("couldnt get chain head: %w", err)
return api.SectorOffset{}, xerrors.Errorf("couldn't get chain head: %w", err)
}
nv, err := m.Api.StateNetworkVersion(ctx, types.EmptyTSK)

View File

@ -27,7 +27,7 @@ func (m *Sealing) MarkForUpgrade(ctx context.Context, id abi.SectorNumber) error
ts, err := m.Api.ChainHead(ctx)
if err != nil {
return xerrors.Errorf("couldnt get chain head: %w", err)
return xerrors.Errorf("couldn't get chain head: %w", err)
}
onChainInfo, err := m.Api.StateSectorGetInfo(ctx, m.maddr, id, ts.Key())
if err != nil {