Skip to content

Commit be37dab

Browse files
committed
chore: fix some typos in comment
Signed-off-by: houpo-bob <[email protected]>
1 parent 5151684 commit be37dab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/submodule/config/config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func TestConfigGet(t *testing.T) {
3232
repo := repo2.NewInMemoryRepo()
3333
cfgAPI := NewConfigModule(repo)
3434

35-
_, err := cfgAPI.Get("nonexistantkey")
36-
assert.EqualError(t, err, "key: nonexistantkey invalid for config")
35+
_, err := cfgAPI.Get("nonexistentkey")
36+
assert.EqualError(t, err, "key: nonexistentkey invalid for config")
3737

3838
_, err = cfgAPI.Get("bootstrap.nope")
3939
assert.EqualError(t, err, "key: bootstrap.nope invalid for config")

pkg/repo/fskeystore/fskeystore_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func TestNonExistingKey(t *testing.T) {
224224
t.Fatalf("expected: %s, got %s", ErrNoSuchKey, err)
225225
}
226226
if k != nil {
227-
t.Fatalf("Get on nonexistant key should give nil")
227+
t.Fatalf("Get on nonexistent key should give nil")
228228
}
229229
}
230230

@@ -233,7 +233,7 @@ func TestMakeKeystoreNoDir(t *testing.T) {
233233

234234
_, err := NewFSKeystore("/this/is/not/a/real/dir")
235235
if err == nil {
236-
t.Fatal("shouldn't be able to make a keystore in a nonexistant directory")
236+
t.Fatal("shouldn't be able to make a keystore in a nonexistent directory")
237237
}
238238
}
239239

pkg/testhelpers/message.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func NewSignedMessage(ctx context.Context, msg types.Message, s types.Signer) (*
6868
// in tests instead of manually creating messages -- it both reduces duplication and gives us
6969
// exactly one place to create valid messages for tests if messages require validation in the
7070
// future.
71-
// TODO support chosing from address
71+
// TODO support choosing from address
7272
func NewSignedMessageForTestGetter(ms MockSigner) func(uint64) *types.SignedMessage {
7373
i := 0
7474
return func(nonce uint64) *types.SignedMessage {
@@ -194,7 +194,7 @@ func SignMsgs(ms MockSigner, msgs []*types.Message) ([]*types.SignedMessage, err
194194
// at a later point.
195195
func NewMsgsWithAddrs(n int, a []address.Address) []*types.Message {
196196
if n > len(a) {
197-
panic("cannot create more messages than there are addresess for")
197+
panic("cannot create more messages than there are addresses for")
198198
}
199199
newMsg := NewMessageForTestGetter()
200200
msgs := make([]*types.Message, n)

0 commit comments

Comments
 (0)