Skip to content

Commit e2bcac6

Browse files
authored
chore(docs): minor spelling fixes (#13425)
1 parent 70f72de commit e2bcac6

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cli/services.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (s *ServicesImpl) DecodeTypedParamsFromJSON(ctx context.Context, to address
9696
p := reflect.New(methodMeta.Params.Elem()).Interface().(cbg.CBORMarshaler)
9797

9898
if err := json.Unmarshal([]byte(paramstr), p); err != nil {
99-
return nil, fmt.Errorf("unmarshaling input into params type: %w", err)
99+
return nil, fmt.Errorf("unmarshalling input into params type: %w", err)
100100
}
101101

102102
buf := new(bytes.Buffer)

cmd/lotus-bench/import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ var importAnalyzeCmd = &cli.Command{
727727
var tse TipSetExec
728728
err := json.Unmarshal(b, &tse)
729729
if err != nil {
730-
log.Warnf("error unmarshaling tipset: %+v", err)
730+
log.Warnf("error unmarshalling tipset: %+v", err)
731731
continue
732732
}
733733

cmd/lotus-shed/state-stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ var statSnapshotCmd = &cli.Command{
533533

534534
var b types.BlockHeader
535535
if err := b.UnmarshalCBOR(bytes.NewBuffer(nd.RawData())); err != nil {
536-
return xerrors.Errorf("unmarshaling block header (cid=%s): %w", blkCid, err)
536+
return xerrors.Errorf("unmarshalling block header (cid=%s): %w", blkCid, err)
537537
}
538538

539539
// header directly to result channel

cmd/lotus-sim/simulation/blockbuilder/blockbuilder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (bb *BlockBuilder) PushMessage(msg *types.Message) (*types.MessageReceipt,
127127
}
128128
if !builtin.IsAccountActor(actor.Code) {
129129
return nil, xerrors.Errorf(
130-
"messags may only be sent from account actors, got message from %s (%s)",
130+
"messages may only be sent from account actors, got message from %s (%s)",
131131
msg.From, builtin.ActorNameByCode(actor.Code),
132132
)
133133
}

cmd/lotus-sim/simulation/simulation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (sim *Simulation) Walk(
251251
minEpoch = sim.head.Height() - abi.ChainEpoch(lookback)
252252
}
253253

254-
// Given tha loading messages and receipts can be a little bit slow, we do this in parallel.
254+
// Given that loading messages and receipts can be a little bit slow, we do this in parallel.
255255
//
256256
// 1. We spin up some number of workers.
257257
// 2. We hand tipsets to workers in round-robin order.

node/impl/full/chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ func resolveOnce(bs blockstore.Blockstore, tse stmgr.Executor) func(ctx context.
575575
if names[0] == "@state" {
576576
var act types.Actor
577577
if err := act.UnmarshalCBOR(bytes.NewReader(nd.RawData())); err != nil {
578-
return nil, nil, xerrors.Errorf("unmarshaling actor struct for @state: %w", err)
578+
return nil, nil, xerrors.Errorf("unmarshalling actor struct for @state: %w", err)
579579
}
580580

581581
head, err := ds.Get(ctx, act.Head)

0 commit comments

Comments
 (0)