Skip to content

Commit

Permalink
chore: fix some typos in comments (#4332)
Browse files Browse the repository at this point in the history
  • Loading branch information
milosgajdos committed Apr 23, 2024
2 parents bdd3d31 + e0a1ce1 commit e8ea4e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion registry/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func init() {
}

// UserInfo carries information about
// an autenticated/authorized client.
// an authenticated/authorized client.
type UserInfo struct {
Name string
}
Expand Down
2 changes: 1 addition & 1 deletion registry/auth/token/accesscontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ type accessController struct {
}

// tokenAccessOptions is a convenience type for handling
// options to the contstructor of an accessController.
// options to the constructor of an accessController.
type tokenAccessOptions struct {
realm string
autoRedirect bool
Expand Down
2 changes: 1 addition & 1 deletion registry/auth/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func getCertPubKey(chains [][]*x509.Certificate) crypto.PublicKey {

// NOTE: we dont have to verify that the public key in the leaf cert
// *is* the signing key: if it's not the signing then token claims
// verifcation with this key fails
// verification with this key fails
return cert.PublicKey.(crypto.PublicKey)
}

Expand Down
2 changes: 1 addition & 1 deletion registry/storage/blob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestWriteSeek(t *testing.T) {
}
contents := []byte{1, 2, 3}
if _, err := blobUpload.Write(contents); err != nil {
t.Fatalf("unexpected error writing contets: %v", err)
t.Fatalf("unexpected error writing contents: %v", err)
}
blobUpload.Close()
offset := blobUpload.Size()
Expand Down
2 changes: 1 addition & 1 deletion registry/storage/cache/redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func init() {
// implementation.
func TestRedisBlobDescriptorCacheProvider(t *testing.T) {
if redisAddr == "" {
// fallback to an environement variable
// fallback to an environment variable
redisAddr = os.Getenv("TEST_REGISTRY_STORAGE_CACHE_REDIS_ADDR")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ pZeMRablbPQdp8/1NyIwimq1VlG0ohQ4P6qhW7E09ZMC
t.Fatal(err)
}
if storageDriver == nil {
t.Fatal("Driver couldnt be initialized.")
t.Fatal("Driver could not be initialized")
}
}

0 comments on commit e8ea4e5

Please sign in to comment.