Skip to content

Commit 76bb5ae

Browse files
authored
Merge pull request #748 from AtomicInnovation321/main
muti: fix typos
2 parents becddbf + 776db71 commit 76bb5ae

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

commitment/commitment_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ func TestTapCommitmentUpsertMaxVersion(t *testing.T) {
14131413
}
14141414

14151415
// TestTapCommitmentDeleteMaxVersion tests that when we delete commitments, the
1416-
// max version is also udpated.
1416+
// max version is also updated.
14171417
func TestTapCommitmentDeleteMaxVersion(t *testing.T) {
14181418
t.Parallel()
14191419

@@ -1474,7 +1474,7 @@ func TestAssetCommitmentUpsertMaxVersion(t *testing.T) {
14741474
}
14751475

14761476
// TestAssetCommitmentDeleteMaxVersion tests that when we delete commitments,
1477-
// the max version is also udpated.
1477+
// the max version is also updated.
14781478
func TestAssetCommitmentDeleteMaxVersion(t *testing.T) {
14791479
t.Parallel()
14801480

fn/func.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ func CopyAll[T Copyable[T]](xs []T) []T {
9595
}
9696

9797
// CopyableErr is a generic interface for a type that's able to return a deep copy
98-
// of itself. This is identical to Copyable, but shuold be used in cases where
98+
// of itself. This is identical to Copyable, but should be used in cases where
9999
// the copy method can return an error.
100100
type CopyableErr[T any] interface {
101101
Copy() (T, error)
102102
}
103103

104104
// CopyAllErr creates a new slice where each item of the slice is a deep copy of
105-
// the elements of the input slice. This is identical to CopyAll, but shuold be
105+
// the elements of the input slice. This is identical to CopyAll, but should be
106106
// used in cases where the copy method can return an error.
107107
func CopyAllErr[T CopyableErr[T]](xs []T) ([]T, error) {
108108
var err error

mssmt/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type TreeStoreUpdateTx interface {
7676
// along with a 'New()' method which is responsible for initializing a
7777
// particular TreeStore concrete implementation.
7878
type TreeStoreDriver struct {
79-
// Name is the anme of the minting store driver.
79+
// Name is the name of the minting store driver.
8080
Name string
8181

8282
// New creates a new concrete instance of the TreeStore given a set of

mssmt/tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (t *FullTree) insert(tx TreeStoreUpdateTx, key *[hashSize]byte,
210210

211211
// With our new root updated, we can update the leaf node within the
212212
// store. If we've inserted an empty leaf, then the leaf node found at
213-
// the given key is being deleted, otherise it's being inserted.
213+
// the given key is being deleted, otherwise it's being inserted.
214214
if leaf.IsEmpty() {
215215
if err := tx.DeleteLeaf(*key); err != nil {
216216
return nil, err

universe/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func (s *SimpleSyncer) syncRoot(ctx context.Context, remoteRoot Root,
338338
return err
339339
}
340340

341-
// If this is a tranfer tree, then we'll collect all the items as we
341+
// If this is a transfer tree, then we'll collect all the items as we
342342
// need to sort them to ensure we can validate them in dep order.
343343
if !isIssuanceTree {
344344
transferLeaves := fn.Collect(transferLeafProofs)

0 commit comments

Comments
 (0)