Skip to content

Commit c8e618d

Browse files
authored
chore(docs): minor typo fixes (#13426)
1 parent e2bcac6 commit c8e618d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

chain/actors/aerrors/wrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func Fatalf(format string, args ...interface{}) ActorError {
8787
}
8888
}
8989

90-
// Wrap extens chain of errors with a message
90+
// Wrap extended chain of errors with a message
9191
func Wrap(err ActorError, message string) ActorError {
9292
if err == nil {
9393
return nil

chain/messagepool/selection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func (mp *MessagePool) selectMessagesOptimal(ctx context.Context, curTs, ts *typ
348348
log.Infow("merge message chains done", "took", dt)
349349
}
350350

351-
// 7. We have reached the edge of what can fit wholesale; if we still hae available
351+
// 7. We have reached the edge of what can fit wholesale; if we still have available
352352
// gasLimit to pack some more chains, then trim the last chain and push it down.
353353
// Trimming invalidates subsequent dependent chains so that they can't be selected
354354
// as their dependency cannot be (fully) included.

chain/store/coalescer.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (c *HeadChangeCoalescer) background(minDelay, maxDelay, mergeInterval time.
134134
}
135135

136136
func (c *HeadChangeCoalescer) coalesce(revert, apply []*types.TipSet) {
137-
// newly reverted tipsets cancel out with pending applys.
137+
// newly reverted tipsets cancel out with pending applies.
138138
// similarly, newly applied tipsets cancel out with pending reverts.
139139

140140
// pending tipsets
@@ -160,13 +160,13 @@ func (c *HeadChangeCoalescer) coalesce(revert, apply []*types.TipSet) {
160160
}
161161

162162
// coalesced revert set
163-
// - pending reverts are cancelled by incoming applys
164-
// - incoming reverts are cancelled by pending applys
163+
// - pending reverts are cancelled by incoming applies
164+
// - incoming reverts are cancelled by pending applies
165165
newRevert := c.merge(c.revert, revert, pendApply, applying)
166166

167167
// coalesced apply set
168-
// - pending applys are cancelled by incoming reverts
169-
// - incoming applys are cancelled by pending reverts
168+
// - pending applies are cancelled by incoming reverts
169+
// - incoming applies are cancelled by pending reverts
170170
newApply := c.merge(c.apply, apply, pendRevert, reverting)
171171

172172
// commit the coalesced sets

chain/types/actor_event.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type ActorEventFilter struct {
3939
ToHeight *abi.ChainEpoch `json:"toHeight,omitempty"`
4040

4141
// Restricts events returned to those emitted from messages contained in this tipset.
42-
// If `TipSetKey` is legt empty in the filter criteria, then neither `FromHeight` nor `ToHeight` are allowed.
42+
// If `TipSetKey` is left empty in the filter criteria, then neither `FromHeight` nor `ToHeight` are allowed.
4343
TipSetKey *TipSetKey `json:"tipsetKey,omitempty"`
4444
}
4545

lib/harmony/harmonydb/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Name the file "today's date" in the format: YYYYMMDD.sql (ex: 20231231.sql for t
1818
a. CREATE TABLE should NOT have a schema:
1919
GOOD: CREATE TABLE foo ();
2020
BAD: CREATE TABLE me.foo ();
21-
b. Schema is managed for you. It provides isolation for integraton tests & multi-use.
21+
b. Schema is managed for you. It provides isolation for integration tests & multi-use.
2222
c. Git Merges: All run once, so old-after-new is OK when there are no deps.
2323
d. NEVER change shipped sql files. Have later files make corrections.
2424
e. Anything not ran will be ran, so an older date making it to master is OK.

0 commit comments

Comments
 (0)