Skip to content

Commit d03f3cc

Browse files
authored
fix(docs): add missing apostrophes in error messages (#13458)
1 parent c3b13a6 commit d03f3cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

chain/consensus/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func checkBlockMessages(ctx context.Context, sm *stmgr.StateManager, cs *store.C
338338
}
339339

340340
if b.Header.Messages != mrcid {
341-
return fmt.Errorf("messages didnt match message root in header")
341+
return fmt.Errorf("messages didn't match message root in header")
342342
}
343343

344344
// Finally, flush.

chain/sync.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func copyBlockstore(ctx context.Context, from, to bstore.Blockstore) error {
384384
// maybe this code should actually live in blocksync??
385385
func zipTipSetAndMessages(bs cbor.IpldStore, ts *types.TipSet, allbmsgs []*types.Message, allsmsgs []*types.SignedMessage, bmi, smi [][]uint64) (*store.FullTipSet, error) {
386386
if len(ts.Blocks()) != len(smi) || len(ts.Blocks()) != len(bmi) {
387-
return nil, fmt.Errorf("msgincl length didnt match tipset size")
387+
return nil, fmt.Errorf("msgincl length didn't match tipset size")
388388
}
389389

390390
if err := checkMsgMeta(ts, allbmsgs, allsmsgs, bmi, smi); err != nil {
@@ -1108,7 +1108,7 @@ func checkMsgMeta(ts *types.TipSet, allbmsgs []*types.Message, allsmsgs []*types
11081108
}
11091109

11101110
if b.Messages != mrcid {
1111-
return fmt.Errorf("messages didnt match message root in header for ts %s", ts.Key())
1111+
return fmt.Errorf("messages didn't match message root in header for ts %s", ts.Key())
11121112
}
11131113
}
11141114

paychmgr/paych.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func (ca *channelAccessor) checkVoucherValidUnlocked(ctx context.Context, ch add
285285
}
286286

287287
if len(sv.Merges) != 0 {
288-
return nil, fmt.Errorf("dont currently support paych lane merges")
288+
return nil, fmt.Errorf("don't currently support paych lane merges")
289289
}
290290

291291
return laneStates, nil
@@ -540,7 +540,7 @@ func (ca *channelAccessor) laneState(ctx context.Context, state lpaych.State, ch
540540
func (ca *channelAccessor) totalRedeemedWithVoucher(laneStates map[uint64]lpaych.LaneState, sv *paych.SignedVoucher) (big.Int, error) {
541541
// TODO: merges
542542
if len(sv.Merges) != 0 {
543-
return big.Int{}, xerrors.Errorf("dont currently support paych lane merges")
543+
return big.Int{}, xerrors.Errorf("don't currently support paych lane merges")
544544
}
545545

546546
total := big.NewInt(0)

0 commit comments

Comments
 (0)