1
0
mirror of https://github.com/distribution/distribution synced 2024-11-06 19:35:52 +01:00

chore: fix some typos in comments

Signed-off-by: goodactive <goodactive@qq.com>
This commit is contained in:
goodactive 2024-04-19 17:49:51 +08:00
parent bc6e81e1b9
commit e0a1ce14a8
6 changed files with 6 additions and 6 deletions

@ -56,7 +56,7 @@ func init() {
} }
// UserInfo carries information about // UserInfo carries information about
// an autenticated/authorized client. // an authenticated/authorized client.
type UserInfo struct { type UserInfo struct {
Name string Name string
} }

@ -143,7 +143,7 @@ type accessController struct {
} }
// tokenAccessOptions is a convenience type for handling // tokenAccessOptions is a convenience type for handling
// options to the contstructor of an accessController. // options to the constructor of an accessController.
type tokenAccessOptions struct { type tokenAccessOptions struct {
realm string realm string
autoRedirect bool autoRedirect bool

@ -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 // 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 // *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) return cert.PublicKey.(crypto.PublicKey)
} }

@ -40,7 +40,7 @@ func TestWriteSeek(t *testing.T) {
} }
contents := []byte{1, 2, 3} contents := []byte{1, 2, 3}
if _, err := blobUpload.Write(contents); err != nil { 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() blobUpload.Close()
offset := blobUpload.Size() offset := blobUpload.Size()

@ -20,7 +20,7 @@ func init() {
// implementation. // implementation.
func TestRedisBlobDescriptorCacheProvider(t *testing.T) { func TestRedisBlobDescriptorCacheProvider(t *testing.T) {
if redisAddr == "" { if redisAddr == "" {
// fallback to an environement variable // fallback to an environment variable
redisAddr = os.Getenv("TEST_REGISTRY_STORAGE_CACHE_REDIS_ADDR") redisAddr = os.Getenv("TEST_REGISTRY_STORAGE_CACHE_REDIS_ADDR")
} }

@ -50,6 +50,6 @@ pZeMRablbPQdp8/1NyIwimq1VlG0ohQ4P6qhW7E09ZMC
t.Fatal(err) t.Fatal(err)
} }
if storageDriver == nil { if storageDriver == nil {
t.Fatal("Driver couldnt be initialized.") t.Fatal("Driver could not be initialized")
} }
} }