Skip to content

Commit

Permalink
chore: docs: fix some misspellings (filecoin-project#12333)
Browse files Browse the repository at this point in the history
Signed-off-by: riskrose <riskrock@qq.com>
  • Loading branch information
riskrose authored Aug 2, 2024
1 parent 1177717 commit 10f6976
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion chain/market/fundmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cli/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions cmd/lotus-shed/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -1049,15 +1049,15 @@ 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)
}

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)
Expand Down
2 changes: 1 addition & 1 deletion documentation/en/cli-lotus.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/fsm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion storage/pipeline/upgrade_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 10f6976

Please sign in to comment.